This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # 修复 Ubuntu 桌面 WiFi 热点下 UFW 导致的设备无法上网问题 | |
| # 支持自动检测、修复、恢复功能 | |
| set -e | |
| UFW_DEFAULT="/etc/default/ufw" | |
| UFW_RULES="/etc/ufw/before.rules" | |
| BACKUP_SUFFIX=".bak_hotspot_fix" | |
| HOTSPOT_NET="10.42.0.0/24" |