2295d502f6
git-svn-id: svn://svn.openwrt.org/openwrt/packages@4917 3c298f89-4303-0410-b956-a3cf2f4a3e73
20 lines
373 B
Bash
20 lines
373 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
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
|
|
|
|
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)
|
|
}
|
|
|