mercoledì, 29 ottobre 2025, 13:34 UTC+1
Non risulti loggato.
Gentile visitatore,
Benvenuto su NAS Forum. Se questa è la tua prima visita, ti chiediamo di leggere la sezione Aiuto. Questa guida ti spiegherà il funzionamento di questa pagina. Prima di poter utilizzare tutte le funzioni di questo software dovrai registrarti. Usa la form di registrazione per registrarti adesso, oppure visualizza maggiori informazioni sul processo di registrazione. Se sei già un utente registrato, allora dovrai solamente procedere con il login da qui.
|
|
Codice sorgente |
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 # |

Questo post è stato modificato 1 volta(e), ultima modifica di "snoopy" (04/04/2008, 20:17)
:]
=)
.... Ladies and gentlemen!
So, es ist vollbracht. Das FTP Tuning paket hat einen kleinen Bruder für SAMBA bekommen und beide laufen unter der aktuellen FW IB....RS1. 
--->>>[attach]158[/attach]<<<---
Questo post è stato modificato 1 volta(e), ultima modifica di "snoopy" (04/04/2008, 20:12)