diff options
author | James Rayner <james@archlinux.org> | 2008-12-18 12:06:56 +0100 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2008-12-18 12:06:56 +0100 |
commit | 4278b9e04952c24b14ce5eb3b5ed25885129a859 (patch) | |
tree | 9438fce666c458b6417e958baaafd75721bedf94 /contrib/net-auto | |
parent | d68313a616c8a4b46ae6192e966176aab3bdd49b (diff) | |
download | netctl-4278b9e04952c24b14ce5eb3b5ed25885129a859.tar.gz netctl-4278b9e04952c24b14ce5eb3b5ed25885129a859.tar.xz |
Arrange tree for future packaging
Diffstat (limited to 'contrib/net-auto')
-rwxr-xr-x | contrib/net-auto | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/contrib/net-auto b/contrib/net-auto deleted file mode 100755 index add6711..0000000 --- a/contrib/net-auto +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -case "$1" in - start) - # Ensure any device renaming has occurred as intended - for daemon in "${DAEMONS[@]}"; do - if [ "$daemon" = "${daemon#!}" -a "$daemon" = "net-rename" ]; then - if ck_daemon net-rename; then - /etc/rc.d/net-rename start - fi - fi - done - - for network in ${AUTO_NETWORKS[@]}; do - case $network in - auto-*) # Automatic configuration, store type and get interface next - auto=$network - ;; - *) # Either interface or profile - if [[ "$auto" ]]; then # Auto set, so interface - /usr/bin/netcfg-$auto $network - unset auto - fi - esac - done - - add_daemon net-auto - ;; - stop) - /usr/bin/netcfg2 -a - rm_daemon net-auto - ;; - restart) - $0 stop; sleep 1; $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac - -# vim: set ts=4 et sw=4: |