summaryrefslogtreecommitdiffstats
path: root/src-wireless/net-auto
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-04-09 13:33:34 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-04-09 13:33:34 +0200
commite4cbb65924b7ad4f3c2a89a53a59dcda8257a29e (patch)
tree4c3c26ecba7aa72063c1587c10dba611d92b7ae1 /src-wireless/net-auto
parentc6ad0bd1294bddb78d1b47e48e8ce7657f91e1df (diff)
downloadnetctl-e4cbb65924b7ad4f3c2a89a53a59dcda8257a29e.tar.gz
netctl-e4cbb65924b7ad4f3c2a89a53a59dcda8257a29e.tar.xz
Remove wireless-dbus and ethernet-iproute support
- wireless-dbus is not simple enough for netcfg - some contributed code was not used and the rest of the code had caught up functionality wise - we switched to iproute so we need to stop pretending it is an 'option' - it is no longer fatal in the ifplugd scrict to have multiple preferred profiles
Diffstat (limited to 'src-wireless/net-auto')
-rw-r--r--src-wireless/net-auto51
1 files changed, 0 insertions, 51 deletions
diff --git a/src-wireless/net-auto b/src-wireless/net-auto
deleted file mode 100644
index 5f972c3..0000000
--- a/src-wireless/net-auto
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/bash
-
-. /usr/lib/network/globals
-
-case "$1" in
- start)
- if ! ck_daemon net-auto; then # JP: check if it's already running
- exit_stderr "net-auto has already been started: try \"/etc/rc.d/net-auto restart\""
- fi
- # Ensure any device renaming has occurred as intended
- for daemon in "${DAEMONS[@]}"; do
- if [[ "$daemon" = "net-rename" ]]; then
- if ck_daemon net-rename; then
- /etc/rc.d/net-rename start
- fi
- fi
- done
-
- # TODO: check if any way of using 'stacks' in bash
- rm -f "$STATE_DIR/net-auto"
- for iface in "${AUTO_NETWORKS[@]}"; do
- if [[ "${iface:0:4}" = "auto" ]]; then
- auto="$iface"
- elif [[ -n "$auto" ]]; then
- if /usr/bin/netcfg-"$auto" "$iface"; then
- echo "$iface" >> "$STATE_DIR/net-auto"
- add_daemon net-auto # JP: was this forgotten?
- fi
- unset auto
- fi
- done
- ;;
- stop)
- if ck_daemon net-auto; then
- exit_stderr "net-auto not running"
- fi
-
- while read iface; do
- /usr/bin/netcfg2 iface-down "$iface"
- done < "$STATE_DIR/net-auto"
- rm -f "$STATE_DIR/net-auto"
- rm_daemon net-auto
- ;;
- restart)
- "$0" stop; sleep 1; "$0" start
- ;;
- *)
- exit_stderr "Usage: $0 {start|stop|restart}"
-esac
-
-# vim: ft=sh ts=4 et sw=4: