|
|
@ -7,12 +7,14 @@ useage() { |
|
|
|
|
|
|
|
[ "$1" ] || useage |
|
|
|
|
|
|
|
if [ "$2" = "" ] ; then |
|
|
|
profile="`cat /etc/network/profile`" |
|
|
|
if [ "$2" = "" ] ; then |
|
|
|
profile="`cat /etc/network/profile 2> /dev/null`" |
|
|
|
else |
|
|
|
profile="$2" |
|
|
|
fi |
|
|
|
|
|
|
|
/etc/network/rocknet "$1" "$2" "${x#if}" |
|
|
|
echo "$profile" > /etc/network/proflie |
|
|
|
profile=${profile:-default} |
|
|
|
|
|
|
|
/etc/network/rocknet "$profile" "$1" "${0#/sbin/if}" |
|
|
|
echo "$profile" > /etc/network/profile |
|
|
|
|