v1.4.9
~增加对更多华硕/梅林设备的支持 ~修复部分设备修改端口时报错的bug
This commit is contained in:
@@ -11,7 +11,7 @@ echo "** by Juewuy **"
|
|||||||
echo "***********************************************"
|
echo "***********************************************"
|
||||||
|
|
||||||
[ -f "/etc/storage/started_script.sh" ] && systype=Padavan && initdir='/etc/storage/started_script.sh'
|
[ -f "/etc/storage/started_script.sh" ] && systype=Padavan && initdir='/etc/storage/started_script.sh'
|
||||||
[ -d "/jffs/" ] && systype=asusrouter && initdir='/jffs/init-start'
|
[ -d "/jffs/scripts" ] && systype=asusrouter && initdir='/jffs/scripts/net-start'
|
||||||
[ -f "/jffs/.asusrouter" ] && systype=asusrouter && initdir='/jffs/.asusrouter'
|
[ -f "/jffs/.asusrouter" ] && systype=asusrouter && initdir='/jffs/.asusrouter'
|
||||||
#检查root权限
|
#检查root权限
|
||||||
if [ "$USER" != "root" -a -z "$systype" ];then
|
if [ "$USER" != "root" -a -z "$systype" ];then
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ checkrestart(){
|
|||||||
}
|
}
|
||||||
#功能相关
|
#功能相关
|
||||||
setport(){
|
setport(){
|
||||||
|
getconfig
|
||||||
[ -z "$secret" ] && secret=未设置
|
[ -z "$secret" ] && secret=未设置
|
||||||
[ -z "$authentication" ] && authentication=未设置
|
[ -z "$authentication" ] && authentication=未设置
|
||||||
inputport(){
|
inputport(){
|
||||||
@@ -153,7 +154,6 @@ setport(){
|
|||||||
inputport
|
inputport
|
||||||
else
|
else
|
||||||
setconfig $xport $portx
|
setconfig $xport $portx
|
||||||
$xport=$portx
|
|
||||||
echo -e "\033[32m设置成功!!!\033[0m"
|
echo -e "\033[32m设置成功!!!\033[0m"
|
||||||
setport
|
setport
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user