NMBD_PID_F=$RUN_D/nmbd.pid
SMBD_PID_F=$RUN_D/smbd.pid
+. /etc/functions.sh
+
+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() {
[ -f $DEFAULT ] && . $DEFAULT
+ config_load timezone&
mkdir -p $RUN_D
nmbd -D $NMBD_OPTIONS
smbd -D $SMBD_OPTIONS
--- /dev/null
+# use a random selection of 8 public stratum 2 servers
+# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
+servers pool.ntp.org