From: hackbard Date: Mon, 19 Jan 2004 16:21:59 +0000 (+0000) Subject: small changes, see diff X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2c6f0465a165eefee61ba5b443c47ca5c956cf8;p=scripts%2Fscripts.git small changes, see diff --- diff --git a/backup.sh b/backup.sh index 3d92329..38a9f64 100755 --- a/backup.sh +++ b/backup.sh @@ -94,7 +94,8 @@ done for i in dhcpd.conf fstab hosts host.conf hosts.allow hosts.deny lilo.conf \ profile sendmail.cf resolv.conf exports fb.modes inetd.conf \ - xinetd.conf mp3user mp3db.conf modules.conf named.conf; do + xinetd.conf mp3user mp3db.conf modules.conf named.conf \ + modprobe.devfs modprobe.conf devfsd.conf ; do if [ -f /etc/$i ] ; then echo "copying /etc/$i" cp /etc/$i ./etc @@ -131,6 +132,16 @@ if [ "$host" = "gate" ] ; then cp /etc/opt/unrealircd/unrealircd.conf ./ircd fi +# right-hand specific config stuff +if [ "$host" = "right-hand" ] ; then + if [ -d /var/named ] ; then + mkdir ./named + echo "copying dns data" + cp -r /var/named/* ./named + fi +fi + + # data stuff echo "data stuff:" @@ -157,12 +168,6 @@ if [ "$host" = "right-hand" ] ; then tar -cf ./chroot/$i.tar /chroot/$i fi done - - mkdir ./named - if [ -d /var/named ] ; then - echo "copying dns data" - cp -r /var/named/* ./named - fi fi # hackstation / mobile / hdw / sparc specific data @@ -171,17 +176,13 @@ if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host" # home of hackbard mkdir -p ./home/hackbard echo "copying home" - for i in software store; do + for i in temp test; do [ -d /home/hackbard/$i ] && \ cp -r /home/hackbard/$i ./home/hackbard done - if [ "$host" = "hackstation" ]; then - [ -d /home/hackbard/projects ] && \ - cp -r /home/hackbard/projects ./home/hackbard - fi for i in xinitrc_evil xinitrc_wm .xinitrc GNUstep .Xauthority \ - .Xdefaults .signature .directfbrc .bashrc; do - [ -f /home/hackbard/$i ] && \ + .Xdefaults .XHkeys .signature .directfbrc .bashrc ; do + [ -e /home/hackbard/$i ] && \ cp -r /home/hackbard/$i ./home/hackbard done [ -d /home/hackbard/.ssh ] && cp -r /home/hackbard/.ssh ./home/hackbard @@ -189,15 +190,15 @@ if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host" # tftpboot if [ -d /tftpboot ] ; then mkdir -p ./tftpboot - echo "copyinf tftpboot stuff" + echo "copying tftpboot stuff" cp -r /tftpboot/* ./tftpboot fi - # hunz config - for i in prism lucent; do - if [ -f /root/hunz_${i}.sh ]; then + # wlan configs + for i in hunz_prism hunz_lucent roman_orinoco.sh; do + if [ -f /root/${i}.sh ]; then mkdir -p ./root - cp /root/hunz_${i}.sh ./root + cp /root/${i}.sh ./root fi done