1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/rocknet/network.init
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # Desc: setting up network devices
14 # Runlevel: 15 rcX rc3 rc4 rc5
19 block_begin(start, `Setting up network devices')
20 [ -x /etc/conf/network-getprofile ] && /etc/conf/network-getprofile
21 profile="$(cat /etc/conf/network-profile 2>/dev/null)"
22 profile=${profile:-default}
23 check(`/sbin/rocknet $profile auto up')
26 block_begin(stop, `Shutting down network devices')
27 profile="$(cat /etc/conf/network-profile 2>/dev/null)"
28 profile=${profile:-default}
29 check(`/sbin/rocknet $profile auto down')