mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
314 B

#!/bin/sh
useage() {
echo "Useage: $0 interface [ profile ]"
exit 1
}
[ "$1" ] || useage
if [ "$2" = "" ] ; then
profile="`cat /etc/network/profile 2> /dev/null`"
else
profile="$2"
fi
profile=${profile:-default}
/etc/network/rocknet "$profile" "$1" "${0#/sbin/if}"
echo "$profile" > /etc/network/profile