|
@@ -110,7 +110,7 @@ pwdChange() {
|
|
|
showMesg 'Password must be at least 6 characters long'
|
|
|
fi
|
|
|
|
|
|
- runSuid "echo -e '$_pwd\n$_pwd' | passwd root"
|
|
|
+ runSuid "echo -e \"$_pwd\n$_pwd\" | passwd root"
|
|
|
runSuid "echo $(htDigest $_pwd) > $_PWDFILE"
|
|
|
_ERR=$?
|
|
|
if [[ $_ERR -gt 0 ]]; then
|
|
@@ -199,8 +199,7 @@ updateFw() {
|
|
|
_OUT="$(/sbin/sysupgrade -T $_FWFILE 2>&1)"
|
|
|
_ERR=$?
|
|
|
[[ $_ERR -gt 0 ]] && showMesg "$_OUT"
|
|
|
-# _OUT="$(runSuid /sbin/mtd -q write $_FWFILE firmware)"
|
|
|
- _OUT=$(runSuid "ls /root")
|
|
|
+ _OUT="$(runSuid /sbin/mtd -q write $_FWFILE firmware)"
|
|
|
_ERR=$?
|
|
|
[[ $_ERR -gt 0 ]] && showMesg "mtd failed, $_OUT"
|
|
|
showMesg 'Firmware update is completed, rebooting..' 'this might take up to 60 seconds'
|