View Single Post
Posts: 125 | Thanked: 1 time | Joined on Aug 2006
#14
Code:
#!/bin/sh
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
        sudo gainroot <<EOF
$0 $*
EOF
        exit
fi
I get a segmentation fault with this part active. Anyone else have a problem with using this technique to gainroot from a user script?


FYI: I have a samsumg blackjack on cingular and the following ip setup was necessary

IP=192.168.0.170
GW=192.168.0.1
NS=192.168.0.1

www.dslreports.com/mspeed give 365kbps one the 770. (laptop usb tethered 1mbps, BT on laptop is about the same as the 770)