home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
tusportal.tus.k12.pa.us
/
tusportal.tus.k12.pa.us.tar
/
tusportal.tus.k12.pa.us
/
Wyse
/
latest-image.raw
/
0.img
/
usr
/
sbin
/
boot-mode
< prev
next >
Wrap
Text File
|
2012-08-08
|
820b
|
37 lines
#!/bin/bash
CONFIG=/etc/sysconfig/thinclient
TMP_CONFIG=${CONFIG}.tmp
function usage ()
{
echo "Usage: $0 <option>"
echo "Options:"
echo " --update Boot process will check and apply image updates"
echo " --no-update Boot process will not check or apply image updates"
echo " --status Prints the current boot mode"
exit 1
}
echo "WARNING: This tool is deprecated in favor of 'thinclient-config'" >/dev/stderr
case $1 in
--update)
/usr/sbin/thinclient-config --set-update-mode both
;;
--no-update)
/usr/sbin/thinclient-config --set-update-mode none
;;
--status)
updateMode=`/usr/sbin/thinclient-config --get-update-mode`
if [ "$updateMode" = "none" ]; then
echo "no-update"
else
echo "update"
fi
;;
*)
usage
;;
esac