My Pants

Announcements of packages that are now released.

Postby TalkingToes » Sun May 11, 2008 12:22 am

I found this a long time ago, and reworked it to display when I booted my Freesco box. Does nothing really. Just a bit of humor. Anybody want to submit a control panel script to check this?
Code: Select all
# pants      Make sure we're wearing pants. Should always be used in
#            multiuser mode.
# Source :
# description: Puts on or takes off pants.

. /etc/live.cfg

# See how we were called.
case "$1" in
        echo -n "Patching pants...                      ";=
        echo -n "Putting on my pants."
# For SMP systems, only.
#       NUMPROC=`grep -c "^cpu[0-9]" /proc/stat`
#       if [ "$NUMPROC" -gt "1" ]; then
#               echo -n ", one leg at a time"
#       fi
        # First check to see if we're still wearing an old pair
        if [ -f /var/ ]; then
                echo "."
                echo "Looks like I've still got some old pants on. They'll do."
                # You'd better start wearing pants now.
                cat /dev/null > /var/
                echo -n "                       ";=
        # Hooray!
        echo -n "Taking off my pants                     "
        rm -f /var/
        echo "Time for a change of my pants."
        $0 stop
        $0 start
        if [ -f /var/ ]; then
                echo "My pants are ON ..."
                echo "I'm not wearing any pants ..."
  *)   echo "Usage: $0 {start|stop|restart|reload|status}"
        exit 1
exit 0

No attachments here, sorry.

Seattle, WA
5' 16" is easy math, so why do SO many miss it?
User avatar
Senior Member
Posts: 76
Joined: Mon Sep 30, 2002 11:11 pm
Location: Seattle, WA

Return to 3rd Party Package Release Announcements

Who is online

Users browsing this forum: No registered users and 5 guests