using Fedora 14:
echo 'while true; do sleep 5; if ifconfig | grep "inet addr:" | grep -vq "127.0.0.1"; then if ! mount | grep -q "/home/user/Desktop/Share"; then mount -vvv -t cifs -o ro,noexec,nosuid,nodev,password=,nolock //192.168.1.1/Share /home/user/Desktop/Share; fi; fi; done &' > /etc/rc.d/rc5.d/S99mountsmb chmod +x /etc/rc.d/rc5.d/S99mountsmb
i mount an anonym Samba share [checks it in every 5 sec]
it's working, ok, great!
But: when i shut down my Fedora box, i can see the lines containing this scripts lines! Many times, about ~50x on the screen.
How could i disable these lines when shutting down? I [and other people] don't want to see those lines for about ~ 5 sec