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