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
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:"
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
# 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
# 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