Code: Select all
#!/sbin/runscript
# Copyright 2003 Frittella Laurento - MrFree
# Distributed under the terms of the GNU General Public License v2
# Profilo utilizzato in ufficio (Giorni Feriali)
OFFICE="Ufficio"
# Profilo utilizzato a casa (Giorni Festivi)
HOME="Casa"
TODAY=$(date +%a)
depend() {
need net
need clock
}
start() {
ebegin "QuickSwitch of the Day ;) "
case "$TODAY" in
Mon | Tue | Wed | Thu | Fri )
switchto $OFFICE &> /dev/null
;;
Sat | Sun )
switchto $HOME &> /dev/null
;;
esac
eend 0
}
Ahhhh... compagno quickswitch




