aboutsummaryrefslogtreecommitdiffstats
path: root/package/strongswan/files/ipsec.button
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2008-08-20 22:00:41 +0000
committerNicolas Thill <nico@openwrt.org>2008-08-20 22:00:41 +0000
commit89124c8a0ab1baeb926108bb8dd503c24a25b75d (patch)
tree27743e0b45f666445f1b7cdb4287364bb008fe70 /package/strongswan/files/ipsec.button
parentd9b755b3dc4f9121ab70b9d816ce813f6038ad6b (diff)
downloadupstream-89124c8a0ab1baeb926108bb8dd503c24a25b75d.tar.gz
upstream-89124c8a0ab1baeb926108bb8dd503c24a25b75d.tar.bz2
upstream-89124c8a0ab1baeb926108bb8dd503c24a25b75d.zip
move more extra packages from ./trunk to ./packages
SVN-Revision: 12359
Diffstat (limited to 'package/strongswan/files/ipsec.button')
-rw-r--r--package/strongswan/files/ipsec.button34
1 files changed, 0 insertions, 34 deletions
diff --git a/package/strongswan/files/ipsec.button b/package/strongswan/files/ipsec.button
deleted file mode 100644
index 9bd9023560..0000000000
--- a/package/strongswan/files/ipsec.button
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-# snarf the code that loads the config values
-# since we also load the functions, might as well save the shell calls
-. /etc/init.d/ipsec
-
-[ -n "$IPSEC_RESET_BUTTON" -a "$BUTTON" = "$IPSEC_RESET_BUTTON" ] || exit
-
-if [ ! -e /var/run/pluto.pid ] ; then
-
- [ "$ACTION" = "pressed" ] && start
-
-else
-
- if [ "$ACTION" = "pressed" ] ; then
-
- stop
-
- elif [ "$ACTION" = "released" ] ; then
-
- while [ -e /var/run/pluto.pid ] ; do
- sleep 1
- done
-
- while ps auxww | grep ipsec | grep -v grep ; do
- sleep 1
- done
-
- start
-
- fi
-
-fi
-