Shadowmage.org
Login
» Menu
» Home
» About
» To Do
» Projects
» Photos
» Themes
» Technical Notes
» Schoolwork
» /images/
» /webcam/
» Desktop Pics
» Contact
» Chat

» Pals
Andrew
» Gavin
» GraphicV
» IQpierce
» Jbond64
» JonoD
» JustinW
» Kevyn
» Lakitu7
» Samantha
» Schroe
» Steph
» TFB
» Tiger
» Troy
» Wala

» Archives
» April 2006 (2)
» February 2006 (1)
» January 2006 (2)
» December 2005 (2)
» November 2005 (1)
» October 2005 (1)
» August 2005 (3)
» July 2005 (1)
» June 2005 (1)
» February 2005 (1)
» January 2005 (1)
» October 2004 (3)
» September 2004 (3)
» August 2004 (2)
» July 2004 (4)
» June 2004 (5)
» May 2004 (4)
» April 2004 (4)
» March 2004 (3)
» February 2004 (2)
» 2003
» 2002
» 2001

» 486 Stuff
Current as of 2005-01-10

cat /bin/ipset
#!/bin/bash
if [ -n "$1" ]
then
IP_ADDR=$1
if [ -n "$2" ]; then
GATEWAY=$2
else
SUBNET=`echo $IP_ADDR | cut -d "." -f 1,2,3`
GATEWAY="$SUBNET.1"
fi
echo ifconfig eth0 $IP_ADDR
ifconfig eth0 $IP_ADDR
echo route add default gw $GATEWAY
route add default gw $GATEWAY

fi


cat /bin/remount
#!/bin/bash
if [ "$1" = "ro" -o "$1" = "rw" ]
then
echo mount / -o remount,$1
mount / -o remount,$1
elif [ "$2" = "ro" -o "$2" = "rw" ]
then
echo mount $1 -o remount,$2
mount $1 -o remount,$2
else
echo Like so: \`remount ro\` or \`remount / rw\`
fi


cat /bin/wifi
#!/bin/sh


if [ -z "$1" -a -e /proc/net/hostap/wlan0 ]
then
echo WiFi stuff works
iwconfig wlan0
elif [ -z "$1" -a ! -e /proc/net/hostap/wlan0 ]
then
echo no WiFi for you! \(run cardmgr?\)
fi
if [ -e /proc/net/hostap/wlan0 ] ; then
if [ "$1" = "scan" ] ; then
#iwlist wlan0 scan > /dev/null
iwlist wlan0 scan | grep -v Bit | grep -v Extra
RESULTS=`cat /proc/net/hostap/wlan0/scan_results | wc -l | cut -b 7`
#$((RESULTS--)) #line 1 explains layout
RESULTS=$((RESULTS - 1))
echo $RESULTS ap\(s\) found.
fi

fi


Random row (122/127) from rand_thought
"And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is."
- Larry Wall
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the Poster. The Rest (c) 2001-2005 Kyle Kienapfel.