1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-25 01:44:39 +02:00
openwrt-xburst/package/samba/files/samba.init
nico 1241032b01 add missing codepages, add syslog support and use it by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1996 3c298f89-4303-0410-b956-a3cf2f4a3e73
2005-09-29 07:04:02 +00:00

25 lines
401 B
Bash

#!/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 $?