Code: Select all
#don't bother starting until there's a network connection
NOCONNECTION=1
while [ ! $NOCONNECTION = 0 ]; do
ping -c 2 google.com
NOCONNECTION=$?
[ ! $NOCONNECTION = 0 ] && sleep 10
done
rdesktop -w -h -a -t -e -v -e -r
Code: Select all
#don't bother starting until there's a network connection
NOCONNECTION=1
while [ ! $NOCONNECTION = 0 ]; do
ping -c 2 google.com
NOCONNECTION=$?
[ ! $NOCONNECTION = 0 ] && sleep 10
done
rdesktop -w -h -a -t -e -v -e -r
Code: Select all
#!/bin/sh
#
# startrdc
# Startup script for RDC
#
exec 1>>/var/log/rdc.log 2>&1
now=`date ‘+%d%m%y-%H:%M’`
echo -e “RUNNING STARTRDC $now
Code: Select all
while [ 1 ]; do
rdesktop
done
Code: Select all
#!/bin/sh
NOCONNECTION=1
while [ ! $NOCONNECTION = 0 ]; do
ping -c 2 google.com
NOCONNECTION=$?
[ ! $NOCONNECTION = 0 ] && sleep 10
done
while [ 1 ]; do
rdesktop
done