
Boundless Technologies
ADDS 5600 Linux-Based Terminal
76
cat /tmp/config/network.ini | grep DYNDNS >> /tmp/config/network.ini.old
cat /tmp/config/network.ini | grep SAMBAWG >> /tmp/config/network.ini.old
cat /tmp/config/network.ini | grep SAMBALMB >> /tmp/config/network.ini.old
cat /tmp/config/network.ini | grep TIMESERVER >> /tmp/config/network.ini.old
cat /tmp/config/network.ini | grep NTPSERVERS >> /tmp/config/network.ini.old
mv
/tmp/config/network.ini.old
/tmp/config/network.ini
rm
/tmp/config/.burnid
kill
-9
$MSG_PID
xmsg "Terminal Configuration Updated, Terminal will reboot in 5 seconds"&
freeze
sleep
5
reboot
}
MGS_UPGRADE()
{
icewmhint rxvt dTitleBar 0
touch
/tmp/config/.upgrade_in_progress
ln -sf $DIR/upgrades /lib/mlconfig/up
rxvt -e upgrade -h http://127.0.0.1/up all
}
# GUI can be 0 1 2 or 3
# 0 : only the get utility
# 1 : only get or put utility
# 2 : only get or upgrades
# 3 : everythings
GUI=""
MGS_ASK()
{
GUI_TYPE=$1
RESULT=""
case
"$GUI_TYPE"
in
"0")
RES=`getinfos
"Get
the
configuration
?"`
if [ "$RES" != "EXIT_getinfos" ] ; then
RESULT="GET"
fi
;;
"1")
RESULT=`gettext "Your choice :" "GET or PUT a configuration ?"`
;;