add cpmac ipv6 patch from mache
[openwrt.git] / openwrt / package / samba / files / samba.init
1 #!/bin/sh
2
3 DEFAULT=/etc/default/samba
4 LOG_D=/var/log/samba
5 RUN_D=/var/run/samba
6 NMBD_PID_F=$RUN_D/nmbd.pid
7 SMBD_PID_F=$RUN_D/smbd.pid
8 [ -f $DEFAULT ] && . $DEFAULT
9
10 case $1 in
11 start)
12 mkdir -p $LOG_D
13 mkdir -p $RUN_D
14 nmbd -D $NMBD_OPTIONS
15 smbd -D $SMBD_OPTIONS
16 ;;
17 stop)
18 [ -f $SMBD_PID_F ] && kill $(cat $SMBD_PID_F)
19 [ -f $NMBD_PID_F ] && kill $(cat $NMBD_PID_F)
20 ;;
21 *)
22 echo "usage: $0 (start|stop)"
23 exit 1
24 esac
25
26 exit $?
This page took 0.056031 seconds and 5 git commands to generate.