1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
5 DEFAULT=/etc/default/samba
7 NMBD_PID_F=$RUN_D/nmbd.pid
8 SMBD_PID_F=$RUN_D/smbd.pid
13 local cfg="$CONFIG_SECTION"
15 config_get cfgtype "$cfg" TYPE
19 config_get posixtz $cfg posixtz
20 config_get zoneinfo $cfg zoneinfo
21 echo "$posixtz" > /etc/TZ
28 [ -f $DEFAULT ] && . $DEFAULT
35 [ -f $SMBD_PID_F ] && kill $(cat $SMBD_PID_F)
36 [ -f $NMBD_PID_F ] && kill $(cat $NMBD_PID_F)