Fix samba errors where it cannot load the timezone, configurable through kamikaze configuration

git-svn-id: svn://svn.openwrt.org/openwrt/packages@6921 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2007-04-10 11:01:17 +00:00
parent ab58392db6
commit 2e888a1e2b
2 changed files with 21 additions and 0 deletions

View File

@ -6,8 +6,26 @@ RUN_D=/var/run/samba
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

View File

@ -0,0 +1,3 @@
# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
servers pool.ntp.org