Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[META][2.00.04] Execute script on NAS start and shutdown
#11
updated to 2.00.04
------------------------------------------------------------------------
[Image: linkedinbutton.jpg][Image: btn_donate_LG.gif]
Please respect my work and dont share my modules
Reply
#12
I am trying to use META to modify the samba config file on startup (as Thecus overwrite any changes) however I am having trouble getting the samba to restart after copying over the smb.cfg as it appears the path has changed to what I have seen people use in the past. 

NAS is Thecus N4810 with OS7 Firmware v3.02.06.13 (latest)

Script is;

#!/bin/sh

#Wait for samba to load
 while ! ps | grep -v grep | grep smbd &>/dev/null; do
 sleep 1
 done

cp /var/run/mysmb.cfg /var/run/smb.cfg

/img/bin/rc/rc.samba restart 1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)