summaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-04-10 18:23:30 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-04-10 18:23:30 +0200
commitbc66a6906c5a1a55c5c9adc7c69f2370327db139 (patch)
treee000150a4ff3494defad61b69fc765b05e7852b9 /rc.d
parent5d322f9f0ba3c68e56edd400662eb1ef39e22e6f (diff)
downloadnetctl-bc66a6906c5a1a55c5c9adc7c69f2370327db139.tar.gz
netctl-bc66a6906c5a1a55c5c9adc7c69f2370327db139.tar.xz
Remove multi-version support
Having multiple versions of netcfg around is not supported.
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/net-profiles8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc.d/net-profiles b/rc.d/net-profiles
index e8b8bc7..be77bac 100755
--- a/rc.d/net-profiles
+++ b/rc.d/net-profiles
@@ -29,7 +29,7 @@ case "$1" in
exit 0
fi
elif [[ -n "$NET" ]]; then
- if /usr/bin/netcfg2 check-iface "$NET"; then
+ if /usr/bin/netcfg check-iface "$NET"; then
echo "$NET" > "$STATE_DIR/net-profiles" # JP: user may want to disconnect profile by calling net-profiles stop
add_daemon net-profiles
exit 0
@@ -44,14 +44,14 @@ case "$1" in
# No NET= passed at boot, go to NETWORKS=()
for network in "${NETWORKS[@]}"; do
if [[ "$network" = "${network#@}" ]]; then
- if /usr/bin/netcfg2 check-iface "$network"; then
+ if /usr/bin/netcfg check-iface "$network"; then
echo "$network" >> "$STATE_DIR/net-profiles"
add_daemon net-profiles
fi
else
# It is up to the user to make sure no backgrounded profile
# uses an interface that is used by another active profile.
- if /usr/bin/netcfg2 "${network#@}"; then
+ if /usr/bin/netcfg "${network#@}"; then
echo "${network#@}" >> "$STATE_DIR/net-profiles"
add_daemon net-profiles
fi >/dev/null &
@@ -71,7 +71,7 @@ case "$1" in
# shutdown any profiles started by netcfg (or from NET_PROFILES in rc.conf)
# JP: only attempt to disconnect the profiles _this daemon_ was told to control
while read profile; do
- /usr/bin/netcfg2 down "$profile"
+ /usr/bin/netcfg down "$profile"
done < "$STATE_DIR/net-profiles"
rm -f "$STATE_DIR/net-profiles"
rm_daemon net-profiles