Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # lines 268 to 281 of /etc/rc.d/rc.network
- # http://www.pearltrees.com/s243a/try-connect-network-puppylinux/id16440758
- # function to get ip address, via static ip or dhcp
- try_and_connect(){
- local RETURN=1
- if [ "$STATIC_IP" = "yes" ] ; then # static ip address
- if setupStaticIP ; then
- # need to quit, probably
- RETURN=0
- fi
- else
- setupDHCP #|| killDhcpcd "$INTERFACE" # 25feb10
- RETURN=$?
- fi
- return $RETURN
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement