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