aboutsummaryrefslogtreecommitdiffstats
path: root/openwrt/package/samba/files/samba.init
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/samba/files/samba.init')
-rw-r--r--openwrt/package/samba/files/samba.init24
1 files changed, 0 insertions, 24 deletions
diff --git a/openwrt/package/samba/files/samba.init b/openwrt/package/samba/files/samba.init
deleted file mode 100644
index c3c600ae3e..0000000000
--- a/openwrt/package/samba/files/samba.init
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-DEFAULT=/etc/default/samba
-RUN_D=/var/run/samba
-NMBD_PID_F=$RUN_D/nmbd.pid
-SMBD_PID_F=$RUN_D/smbd.pid
-[ -f $DEFAULT ] && . $DEFAULT
-
-case $1 in
- start)
- mkdir -p $RUN_D
- nmbd -D $NMBD_OPTIONS
- smbd -D $SMBD_OPTIONS
- ;;
- stop)
- [ -f $SMBD_PID_F ] && kill $(cat $SMBD_PID_F)
- [ -f $NMBD_PID_F ] && kill $(cat $NMBD_PID_F)
- ;;
- *)
- echo "usage: $0 (start|stop)"
- exit 1
-esac
-
-exit $?