~适配华硕官方固件(自启需插入任意USB设备)
~优化梅林固件自启逻辑
~优化小米设备安装目录选择
~增加安装到外置存储选项
~修复部分设备时间显示异常的bug
~修复部分设备环境变量配置重复的bug
This commit is contained in:
juewuy
2022-09-22 20:36:53 +08:00
parent 0c659083dc
commit eee0f06faf
6 changed files with 100 additions and 22 deletions

View File

@@ -5,12 +5,10 @@ clashdir=/data/clash
profile=/etc/profile
#h初始化环境变量
if [ `type -t clash` != "alias" ];then
echo "alias clash=\"$clashdir/clash.sh\"" >> $profile
fi
if [ -z $clashdir ];then
echo "export clashdir=\"$clashdir\"" >> $profile
fi
sed -i "/alias clash/d" $profile
sed -i "/export clashdir/d" $profile
echo "alias clash=\"$clashdir/clash.sh\"" >> $profile
echo "export clashdir=\"$clashdir\"" >> $profile
#设置init.d服务并启动clash服务
ln -sf $clashdir/clashservice /etc/init.d/clash
chmod 755 /etc/init.d/clash