juewuy / ShellCrash

Run sing-box/mihomo as client in shell
8.73k stars 1.46k forks source link

[BUG] /data/clash/init.sh: line 146: can't create /mark: Read-only file system #311

Closed geekyouth closed 1 year ago

geekyouth commented 1 year ago

Verify steps

Description

root@XiaoQiang:~# export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /
dev/null
***********************************************
**                 欢迎使用                  **
**                ShellClash                 **
**                             by  Juewuy    **
***********************************************
最新版本:1.6.16d
-----------------------------------------------
如遇问题请加TG群反馈: t.me/ShellClash
支持各种基于openwrt的路由器设备
支持Debian、Centos等标准Linux系统
-----------------------------------------------
检测到当前设备为小米官方系统,请选择安装位置
 1 安装到/data目录(推荐,支持软固化功能)
 2 安装到USB设备(支持软固化功能)
 0 退出安装
-----------------------------------------------
请输入相应数字 > 1
目标目录/data空间剩余:37.2M
确认安装?(1/0) > 1
-----------------------------------------------
开始从服务器获取安装文件!
-----------------------------------------------
######################################################################################################################################################## 100.0%
-----------------------------------------------
开始解压文件!
clash.service
clash.sh
clashservice
getdate.sh
init.sh
misnap_init.sh
start.sh
BusyBox v1.25.1 (2021-10-25 11:02:56 UTC) multi-call binary.

Usage: mkdir [OPTIONS] DIRECTORY...

Create DIRECTORY

        -m MODE Mode
        -p      No error if exists; make parent directories as needed
/data/clash/init.sh: line 146: can't create /mark: Read-only file system
grep: /mark: No such file or directory
/data/clash/init.sh: line 148: can't create /mark: Read-only file system
chmod: /etc/init.d/clash: No such file or directory
sed: /start.sh: No such file or directory
chmod: /start.sh: No such file or directory
grep: /mark: No such file or directory
/data/clash/init.sh: line 171: can't create /mark: Read-only file system
grep: /mark: No such file or directory
/data/clash/init.sh: line 173: can't create /mark: Read-only file system
chmod: /misnap_init.sh: No such file or directory
grep: /mark: No such file or directory
/data/clash/init.sh: line 214: can't create /mark: Read-only file system
脚本初始化完成,请输入 clash 命令开始使用!
-----------------------------------------------
ShellClash 已经安装成功!
-----------------------------------------------
输入 clash 命令即可管理!!!
-----------------------------------------------
root@XiaoQiang:~# cd /data
root@XiaoQiang:/data# ll
drwxr-xr-x    8 root     root           552 Jan 20 15:12 ./
drwxr-xr-x   19 root     root           292 Oct 25  2021 ../
drwxr-xr-x    2 root     root           656 Jan 20 15:12 clash/
drwxr-xr-x    9 root     root          1048 Jan 20 15:10 etc/
drwxr-xr-x   39 root     root          6232 Jan 20 14:55 etc_bak/
drwxr-xr-x    2 root     root           160 Jan  1  1970 ini/
drwxr-xr-x    4 root     root           288 Aug 18 13:51 userdisk/
drwxr-xr-x    3 root     root           224 Aug 18 13:52 usr/
root@XiaoQiang:/data#
/data/clash/init.sh: line 146: can't create /mark: Read-only file system
grep: /mark: No such file or directory
juewuy commented 1 year ago

@geekyouth 已修复