summaryrefslogtreecommitdiffstats
path: root/urunlevel/my_linux/Trinux/net-stop
diff options
context:
space:
mode:
Diffstat (limited to 'urunlevel/my_linux/Trinux/net-stop')
-rwxr-xr-xurunlevel/my_linux/Trinux/net-stop11
1 files changed, 11 insertions, 0 deletions
diff --git a/urunlevel/my_linux/Trinux/net-stop b/urunlevel/my_linux/Trinux/net-stop
new file mode 100755
index 0000000..4b60457
--- /dev/null
+++ b/urunlevel/my_linux/Trinux/net-stop
@@ -0,0 +1,11 @@
1#!/bin/sh
2
3killall udhcpcd 2> /dev/null
4killall dhcpcd 2> /dev/null
5killall pump 2> /dev/mull
6
7for i in `grep eth /proc/net/dev | cut -d: -f1`
8do
9 echo "Bringing down $i"
10 ifconfig $i down 2> /dev/null
11done