Dienstag, 9. September 2025, 19:24 UTC+2
Sie sind nicht angemeldet.
![]() |
Quellcode |
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 # |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »snoopy« (4. April 2008, 20:17)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »snoopy« (4. April 2008, 20:12)