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:
parent
ab58392db6
commit
2e888a1e2b
@ -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
|
||||
|
3
net/samba/files/smbd.config
Normal file
3
net/samba/files/smbd.config
Normal 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
|
Loading…
x
Reference in New Issue
Block a user