#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50

#RUN_D=/var/run/samba
#NMBD_PID_F=$RUN_D/nmbd.pid
#SMBD_PID_F=$RUN_D/smbd.pid

config_cb() {
        local cfg="$CONFIG_SECTION"
        local cfgtype
        config_get cfgtype "$cfg" TYPE

        case "$cfgtype" in
                timezone)
                        config_get posixtz      $cfg posixtz
                        config_get zoneinfo     $cfg zoneinfo
			echo "$posixtz" > /etc/TZ
                ;;
        esac
}


start() {	
	smbd -D
	nmbd -D
}
stop() {
	killall smbd
	killall nmbd
}