diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2012-12-28 02:38:58 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-12-28 02:38:58 +0100 |
commit | 4e457e0efd0e5fd5df24c7e9ed63b02d0196ea8d (patch) | |
tree | 09580c92ca78e8b9b54d7ed8d6b79d7fcd6fd9ff /rc.d/net-auto-wireless | |
parent | 6737a37e5666837a8f51a2f74bdebdd756151394 (diff) | |
download | netctl-4e457e0efd0e5fd5df24c7e9ed63b02d0196ea8d.tar.gz netctl-4e457e0efd0e5fd5df24c7e9ed63b02d0196ea8d.tar.xz |
Forking netcfg to netctl (1/2)
This commit contains the moving of files.
Diffstat (limited to 'rc.d/net-auto-wireless')
-rwxr-xr-x | rc.d/net-auto-wireless | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/rc.d/net-auto-wireless b/rc.d/net-auto-wireless deleted file mode 100755 index 9094232..0000000 --- a/rc.d/net-auto-wireless +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions -. /usr/lib/network/globals -. /etc/conf.d/netcfg - -if [[ ! -x /usr/sbin/wpa_actiond ]]; then - exit_stderr "Please install 'wpa_actiond' to use net-auto-wireless" -fi - -if [[ -z "${WIRELESS_INTERFACE}" ]]; then - exit_stderr "No interface name set. Add to /etc/conf.d/netcfg a line"$'\n' \ - " WIRELESS_INTERFACE='your_interface'" -fi - -case "$1" in - start) - if ! ck_daemon net-auto-wireless; then - exit_stderr "net-auto-wireless has already been started: try \"/etc/rc.d/net-auto-wireless 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 - - stat_busy "Starting netcfg auto-wireless mode for interface ${WIRELESS_INTERFACE}" - if /usr/bin/netcfg-wpa_actiond "${WIRELESS_INTERFACE}" >/dev/null; then - add_daemon net-auto-wireless - stat_done - else - stat_fail - fi - ;; - stop) - if ! ck_daemon net-auto-wireless; then - stat_busy "Stopping netcfg auto-wireless mode for interface ${WIRELESS_INTERFACE}" - if /usr/bin/netcfg-wpa_actiond stop "${WIRELESS_INTERFACE}" >/dev/null; then - rm_daemon net-auto-wireless - stat_done - else - stat_fail - fi - fi - ;; - restart) - "$0" stop - sleep 1 - "$0" start - ;; - *) - echo "Usage: $0 {start|stop|restart}" - exit 1 - ;; -esac -exit 0 -# vim: ft=sh ts=4 et sw=4: |