diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-06-11 15:22:39 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-06-11 15:22:39 -0300 |
commit | d9929db3b4ad2dfeeb19ad71f6016eb8122d0208 (patch) | |
tree | 72944f18f0c554390a9ced86c8a8e2c06ce6cc47 /community-staging/miredo/isatapd.rc.d | |
parent | 54452120abed3fa83e394e89110859525788c0ea (diff) | |
parent | 306ac55c1e99cfb5801ef0d9acf2a11d3994d80d (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/hostapd/PKGBUILD
extra/samba/PKGBUILD
staging/ffmpeg/PKGBUILD
Diffstat (limited to 'community-staging/miredo/isatapd.rc.d')
-rw-r--r-- | community-staging/miredo/isatapd.rc.d | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community-staging/miredo/isatapd.rc.d b/community-staging/miredo/isatapd.rc.d new file mode 100644 index 000000000..fa7bbd708 --- /dev/null +++ b/community-staging/miredo/isatapd.rc.d @@ -0,0 +1,37 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/sbin/isatapd` +case "$1" in + start) + stat_busy "Starting userspace ISATAP client" + if [ -z "$PID" ]; then + /usr/sbin/isatapd + fi + if [ ! -z "$PID" -o $? -gt 0 ]; then + stat_fail + else + add_daemon isatapd + stat_done + fi + ;; + stop) + stat_busy "Stopping userspace ISATAP client" + [ ! -z "$PID" ] && kill $PID &>/dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon isatapd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac |