summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-09-24 09:31:15 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-10-19 17:31:55 +0200
commit89c6331673054d530b30b8e9e8bdf331639dfcd5 (patch)
tree90150962518446299ae574ec4b615c2c6df48bee
parent6843870670b8a68c98528faf638c6b3938cab55d (diff)
scripts: delete ifup/ifdown, they are unused
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
l---------scripts/ifdown1
-rwxr-xr-xscripts/ifup20
2 files changed, 0 insertions, 21 deletions
diff --git a/scripts/ifdown b/scripts/ifdown
deleted file mode 120000
index a0e5c17..0000000
--- a/scripts/ifdown
+++ /dev/null
@@ -1 +0,0 @@
-ifup \ No newline at end of file
diff --git a/scripts/ifup b/scripts/ifup
deleted file mode 100755
index b62054c..0000000
--- a/scripts/ifup
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-case "$0" in
- *ifdown) mode=down;;
- *ifup) mode=up;;
- *) echo "Invalid command: $0";;
-esac
-
-[[ "$1" == "-a" ]] && {
- for interface in `ubus -S list 'network.interface.*'`; do
- ubus call $interface $mode
- done
- exit
-}
-
-ubus -S list "network.interface.$1" > /dev/null || {
- echo "Interface $1 not found"
- exit
-}
-ubus call "network.interface.$1" "$mode"