#!/bin/sh # use gainroot to become root and relaunch itself if [ `id -u` != 0 ] ; then #if not already root, call itself as root exec sudo gainroot <<EOF exec $0 $* EOF exit $? fi /usr/lib/maemo-pan/pan-control connect
#!/bin/sh # use gainroot to become root and relaunch itself if [ `id -u` != 0 ] ; then #if not already root, call itself as root exec sudo gainroot <<EOF exec $0 $* EOF exit $? fi route del default gw ifconfig wan0 down # Not sure this is necessary? I don't think I'm using it now. #route add default gw 192.168.0.1
chmod 755 /home/user/bin/*