卸载ShellCrash时把整个路由器的文件都删除了,导致不能访问
具体操作过程看日志文件,中途9千多行的没删除文件权限提示删除了,不能上传太多,提示超了
--- 10.26.135.235 ping statistics --- 9 packets transmitted, 0 packets received, 100.0% packet loss abcd@MacBook-Pro-9 ~ % ssh [email protected] [email protected]'s password:
BusyBox v1.36.1 (2025-04-25 11:11:52 UTC) built-in shell (ash)
.___ __ .__ | | _____ _____ / | | | | |/ \ / \ / _ _ __ \ __ \ | | | | Y Y \ Y Y ( <> ) | /| | / __ | | |||_| /|| /_/|| |__| (____ /____/ / / BE FREE AND UNAFRAID /
ImmortalWrt 24.10.1, r33048-cc720ea55a71
root@ImmortalWrt-T:~# cd / root@ImmortalWrt-T:/# ls -l drwxr-xr-x 2 root root 304 May 27 22:26 -f -rw-r--r-- 1 197609 197609 128852 Dec 1 2024 Country.mmdb -rw-r--r-- 1 root root 460800 May 27 21:51 ShellCrash_1.9.1.tar drwxr-xr-x 2 root root 803 Apr 15 19:38 bin drwxr-xr-x 2 root root 760 Jun 13 02:05 configs drwxr-xr-x 4 root root 1620 Jun 13 02:04 dev drwxr-xr-x 1 root root 1744 Jun 13 02:05 etc -rwxr-xr-x 1 197609 197609 13919 Apr 25 12:23 init.sh drwxr-xr-x 2 root root 160 May 27 21:44 jsons drwxr-xr-x 1 root root 296 May 29 14:42 lib lrwxrwxrwx 1 root root 3 Apr 15 19:38 lib64 -> lib -rwxr-xr-x 1 197609 197609 82220 Jun 13 02:05 menu.sh drwxr-xr-x 2 root root 3 Apr 15 19:38 mnt -rw-r--r-- 1 root root 4 Jun 13 02:05 notice drwxr-xr-x 4 root root 360 Apr 15 19:38 overlay dr-xr-xr-x 151 root root 0 Jan 1 1970 proc drwxr-xr-x 16 root root 248 Apr 15 19:38 rom drwxr-x--- 1 root root 160 Jun 14 15:00 root lrwxrwxrwx 1 root root 8 Apr 15 19:38 run -> /var/run drwxr-xr-x 2 root root 894 Apr 15 19:38 sbin -rwxr-xr-x 1 197609 197609 1090 Apr 25 12:23 shellcrash.procd -rwxr-xr-x 1 197609 197609 95687 Jun 13 02:05 start.sh dr-xr-xr-x 12 root root 0 Jan 1 1970 sys drwxr-xr-x 2 root root 496 May 27 22:21 task drwxrwxrwt 22 root root 640 Jun 14 22:45 tmp drwxr-xr-x 2 root root 160 May 27 21:44 tools drwxr-xr-x 3 root root 1192 May 27 22:22 ui drwxr-xr-x 1 root root 480 May 31 20:19 usr lrwxrwxrwx 1 root root 3 Apr 15 19:38 var -> tmp -rwxr-xr-x 1 197609 197609 96182 Apr 25 12:23 webget.sh drwxr-xr-x 1 root root 432 May 31 20:19 www drwxr-xr-x 2 root root 304 Jun 4 03:00 yamls root@ImmortalWrt-T:/# ./start.sh root@ImmortalWrt-T:/# ./init.sh sed: //task.sh: No such file or directory chmod: //task.sh: No such file or directory 脚本初始化完成,请输入 crash 命令开始使用! root@ImmortalWrt-T:/# crash
欢迎使用ShellCrash! 版本:1.9.2beta3 Mihomo服务没有运行(Redir模式),已设置开机启动! TG频道:https://t.me/ShellClash
1 启动/重启服务 2 内核功能设置 3 停止内核服务 4 内核启动设置 5 配置自动任务 6 导入配置文件 7 内核进阶设置 8 其他工具 9 更新/卸载
0 退出脚本 请输入对应数字 > 9
欢迎使用更新功能:
当前目录(/)剩余空间:41.0M
1 更新管理脚本 1.9.2beta3 > 1.9.2beta3 2 切换内核文件 v1.19.3 > v1.19.3 3 更新数据库文件 > 20250418 4 安装本地Dashboard面板 5 安装/更新本地根证书文件 6 查看PAC自动代理配置
7 切换安装源及安装版本 8 配置自动更新 9 卸载ShellCrash
99 鸣谢!
0 返回上级菜单
请输入对应数字 > 1
当前脚本版本为: 1.9.2beta3 最新脚本版本为: 1.9.2beta3 注意更新时会停止服务!
是否更新脚本?[1/0] > 1 ################################################################################################################# 100.0%
开始解压文件! 脚本更新成功! root@ImmortalWrt-T:/# crash
欢迎使用ShellCrash! 版本:1.9.2beta3 Mihomo服务没有运行(Redir模式),已设置开机启动! TG频道:https://t.me/ShellClash
1 启动/重启服务 2 内核功能设置 3 停止内核服务 4 内核启动设置 5 配置自动任务 6 导入配置文件 7 内核进阶设置 8 其他工具 9 更新/卸载
0 退出脚本 请输入对应数字 > 1
mkdir: can't create directory '/configs/command.env/': Not a directory cp: can't stat '/configs/command.env/ui': Not a directory //start.sh: line 1659: can't create /configs/command.env/ui/index.html: nonexistent directory mv: can't stat '/configs/command.env/ui/pac': Not a directory 未找到【meta】核心,正在下载! ################################################################################################################# 100.0% mv: can't stat '/configs/command.env/CrashCore.tar.gz': Not a directory mv: can't stat '/configs/command.env/Country.mmdb': Not a directory error msg="can't initial GeoIP: can't download MMDB: open : no such file or directory" error msg="rules[720] [GEOIP,CN,🍂 Domestic] error: can't download MMDB: open : no such file or directory" 自定义配置文件校验失败!将使用基础配置文件启动! 错误详情请参考 /tmp/ShellCrash/error.yaml 文件! ln: /configs/command.env/config.yaml: Not a directory ShellCrash将延迟60秒启动 服务已启动! 请使用 http://192.168.20.1:9999/ui 管理内置规则 root@ImmortalWrt-T:/# ll /configs/command.env/config.yaml ls: /configs/command.env/config.yaml: Not a directory root@ImmortalWrt-T:/# crash
欢迎使用ShellCrash! 版本:1.9.2beta3 Mihomo服务正在运行(Redir模式),已设置开机启动! 当前内存占用:23.46 MB,已运行:00小时34分25秒 TG频道:https://t.me/ShellClash
1 启动/重启服务 2 内核功能设置 3 停止内核服务 4 内核启动设置 5 配置自动任务 6 导入配置文件 7 内核进阶设置 8 其他工具 9 更新/卸载
0 退出脚本 请输入对应数字 > 1
mkdir: can't create directory '/configs/command.env/': Not a directory cp: can't stat '/configs/command.env/ui': Not a directory //start.sh: line 1659: can't create /configs/command.env/ui/index.html: nonexistent directory mv: can't stat '/configs/command.env/ui/pac': Not a directory 未找到【meta】核心,正在下载! ################################################################################################################# 100.0% mv: can't stat '/configs/command.env/CrashCore.tar.gz': Not a directory mv: can't stat '/configs/command.env/Country.mmdb': Not a directory error msg="can't initial GeoIP: can't download MMDB: open : no such file or directory" error msg="rules[720] [GEOIP,CN,🍂 Domestic] error: can't download MMDB: open : no such file or directory" 自定义配置文件校验失败!将使用基础配置文件启动! 错误详情请参考 /tmp/ShellCrash/error.yaml 文件! ln: /configs/command.env/config.yaml: Not a directory
服务已启动! 请使用 http://192.168.20.1:9999/ui 管理内置规则 root@ImmortalWrt-T:/# root@ImmortalWrt-T:/# crash
欢迎使用ShellCrash! 版本:1.9.2beta3 Mihomo服务正在运行(Redir模式),已设置开机启动! 当前内存占用:23.94 MB,已运行:00小时00分04秒 TG频道:https://t.me/ShellClash
1 启动/重启服务 2 内核功能设置 3 停止内核服务 4 内核启动设置 5 配置自动任务 6 导入配置文件 7 内核进阶设置 8 其他工具 9 更新/卸载
0 退出脚本 请输入对应数字 > 3
Mihomo服务已停止!
欢迎使用ShellCrash! 版本:1.9.2beta3 Mihomo服务没有运行(Redir模式),已设置开机启动! TG频道:https://t.me/ShellClash
1 启动/重启服务 2 内核功能设置 3 停止内核服务 4 内核启动设置 5 配置自动任务 6 导入配置文件 7 内核进阶设置 8 其他工具 9 更新/卸载
0 退出脚本 请输入对应数字 > crash
请输入正确的字母或数字! root@ImmortalWrt-T:/# 9 -ash: 9: not found root@ImmortalWrt-T:/# crash
欢迎使用ShellCrash! 版本:1.9.2beta3 Mihomo服务没有运行(Redir模式),已设置开机启动! TG频道:https://t.me/ShellClash
1 启动/重启服务 2 内核功能设置 3 停止内核服务 4 内核启动设置 5 配置自动任务 6 导入配置文件 7 内核进阶设置 8 其他工具 9 更新/卸载
0 退出脚本 请输入对应数字 > 9
欢迎使用更新功能:
当前目录(/)剩余空间:38.6M
1 更新管理脚本 1.9.2beta3 > 1.9.2beta3 2 切换内核文件 v1.19.3 > v1.19.3 3 更新数据库文件 > 20250418 4 安装本地Dashboard面板 5 安装/更新本地根证书文件 6 查看PAC自动代理配置
7 切换安装源及安装版本 8 配置自动更新 9 卸载ShellCrash
99 鸣谢!
0 返回上级菜单
请输入对应数字 > 9 确认卸载ShellCrash?(警告:该操作不可逆!)[1/0] > 1 是否保留脚本配置及订阅文件?[1/0] > 0 rm: can't remove '/dev/pts/0': Operation not permitted rm: can't remove '/dev/pts/ptmx': Operation not permitted rm: can't remove '/overlay': Resource busy rm: can't remove '/proc/fs/ext4': Operation not permitted rm: can't remove '/proc/fs/f2fs': Operation not permitted rm: can't remove '/proc/fs/jbd2': Operation not permitted rm: can't remove '/proc/fs/nfsd': Operation not permitted rm: can't remove '/proc/bus/pci/devices': Operation not permitted //menu.sh: line 1862: rm: not found //menu.sh: line 1863: sed: not found
已卸载ShellCrash相关文件!有缘再会! 请手动关闭当前窗口以重置环境变量!
@ImmortalWrt-T:/# ll /sys/module/nf_nat_snmp_basic/initstate -ash: ls: not found @ImmortalWrt-T:/# cd /sys/module/nf_nat_snmp_basic/ @ImmortalWrt-T:/sys/module/nf_nat_snmp_basic# ll -ash: ls: not found @ImmortalWrt-T:/sys/module/nf_nat_snmp_basic# cd .. @ImmortalWrt-T:/sys/module# cd/ -ash: cd/: not found @ImmortalWrt-T:/sys/module# cd / @ImmortalWrt-T:/# ll -ash: ls: not found @ImmortalWrt-T:/# ls -ash: ls: not found @ImmortalWrt-T:/# Read from remote host 192.168.20.1: Connection reset by peer Connection to 192.168.20.1 closed. client_loop: send disconnect: Broken pipe abcd@MacBook-Pro-9 ~ % abcd@MacBook-Pro-9 ~ % ssh [email protected] [email protected]'s password: Permission denied, please try again. [email protected]'s password: