Boundless Technologies
ADDS 5600 Linux-Based Terminal
75
cd ${DIR}
MGS_GET()
{
rm
-rf
config.tar
xmsg "Please wait while the terminal configuration is compressed"&
MSG_PID="$!"
sleep
1
cd
/tmp
tar c config -f config.tar
mv
config.tar
$OLDPWD
cd
-
kill
-9
$MSG_PID
xmsg "Terminal Configuration compression complete"
exit
0
}
MGS_PUT()
{
if [ ! -f config.tar ] ; then
xmsg "cannot find compressed configuration"
exit
1
fi
xmsg "Please wait while installing the new terminal configuration" &
MSG_PID="$!"
sleep
1
cd
/tmp
cat
/tmp/config/network.ini
|
grep -v "network config" |
grep
-v
HOSTNAME
|
grep -v DYNDNS |
grep -v SAMBAWG |
grep -v SAMBALMB |
grep -v TIMESERVER |
grep -v NTPSERVERS > /tmp/config/network.ini.old
OLD_HOST="`cat /tmp/config/network.ini | grep HOSTNAME`"
rm
-rf
config
tar -xf $OLDPWD/config.tar 2>&1 > /dev/null
cd
-
echo "[network config]" >> /tmp/config/network.ini.old
echo "$OLD_HOST" >> /tmp/config/network.ini.old