From: Alfie Costa (agcosta@gis.net)
Date: Thu Apr 06 2000 - 06:54:25 CEST
Tweak 5:
In /usr/bin/welcome
This line:
eval $browser http://localhost/
...can lose the "eval" and still work fine. Perhaps this is nitpicking. Last
year a relative of mine contracted a terrible case of head lice, and so I got
to be pretty good at hunting for nits. Interesting to see one under a
microscope. Those lice are all gone now, thank goodness.
#!/bin/ash
# welcome (by M. Andreoli)
#set -x
. /etc/color
echo "Starting the ... tour :)"
sleep 1
# start the browser
if [ "`which lynx`" ] ; then
browser=lynx
else
browser=quark
fi
echo "GET /" | /usr/bin/nc -w 1 localhost 80 2>/dev/null 1>&2
if [ $? -eq 0 ] ; then
sleep 2 # wait for httpd coming up
$browser http://localhost/
else
echo "Server web not running."
fi
# info
[ -x /usr/bin/info ] && info
# help
[ -x /usr/bin/help ] && help
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:13 CET