|
|
@ -30,11 +30,15 @@ main_begin |
|
|
|
|
|
|
|
block_begin(start, `Setting up network devices.') |
|
|
|
[ -x /etc/network/getprofile ] && /etc/network/getprofile |
|
|
|
check(`/etc/network/rocknet auto auto up') |
|
|
|
profile="`cat /etc/network/profile`" |
|
|
|
profile={profile:-default} |
|
|
|
check(`/etc/network/rocknet $profile auto up') |
|
|
|
block_end |
|
|
|
|
|
|
|
block_begin(stop, `Shutting down network devices.') |
|
|
|
check(`/etc/network/rocknet auto auto down') |
|
|
|
profile="`cat /etc/network/profile`" |
|
|
|
profile={profile:-default} |
|
|
|
check(`/etc/network/rocknet $profile auto down') |
|
|
|
block_end |
|
|
|
|
|
|
|
main_end |
|
|
|