Friday, September 12th 2025, 1:13pm UTC+2
You are not logged in.
Dear visitor, welcome to NAS Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
#!/bin/sh # 20080404 # by HWguru and snoopy # # at the point where init gets executed a template with modified # parameters will be copied to /usr/hddapp/etc # # later on sausalito seems to add all settings made through web interface # like users and shares # # HD_MNT_POINT=$(cat /usr/sausalito/codb/objects/1/Disk.rootdir 2> /dev/null) WORK_DIR=$HD_MNT_POINT/public/applications/do_it # echo "-------- will do something here :-) ---------" # if [ -f $WORK_DIR/proftpd.conf ]; then echo "copy modified proftpd.conf template" cp $WORK_DIR/proftpd.conf /usr/hddapp/etc else echo "$WORK_DIR/proftpd.conf not found ... skipping" fi # HD_MNT_POINT=$(cat /usr/sausalito/codb/objects/1/Disk.rootdir 2> /dev/null) WORK_DIR=$HD_MNT_POINT/public/applications/do_it if [ -f $WORK_DIR/smb.conf ]; then echo "copy modified smb.conf template" cp $WORK_DIR/smb.conf /usr/hddapp/etc/samba else echo "$WORK_DIR/smb.conf not found ... skipping" fi # |
This post has been edited 1 times, last edit by "snoopy" (Apr 4th 2008, 8:17pm)
This post has been edited 1 times, last edit by "snoopy" (Apr 4th 2008, 8:12pm)