X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=simple-cdd%2Fprofiles%2Ftrc6500.postinst;h=c37271469669c08814617f44b7815f715b539bfd;hb=b3f3562f417f2983a7e0d0c2d5b54bb3bd9e94ab;hp=0ad5d6033935beda7368aa64da05294613e6d3e1;hpb=9c7f26beb3643499203fca3668ba7024e6823af4;p=debian6500.git diff --git a/simple-cdd/profiles/trc6500.postinst b/simple-cdd/profiles/trc6500.postinst index 0ad5d60..c372714 100755 --- a/simple-cdd/profiles/trc6500.postinst +++ b/simple-cdd/profiles/trc6500.postinst @@ -14,7 +14,9 @@ echo 'Additional packages installed.' # now we unpack our master archive and replace all those conf files and scripts and things echo 'Unpacking master config files..' -tar xzf /media/cdrom/simple-cdd/master.tar -C / +tar xzf /media/cdrom/simple-cdd/master.tar.gz -C / +chown root /etc/cron.d/getswitchtemp +chown root /root/bin/get_switch_temperature echo 'Files unpacked.' # I don't know why things were that way before, but I'm told to set them that way again. @@ -55,6 +57,11 @@ chmod go-rwx /root/.ssh/id_rsa chmod go-rwx /opt/cluster/slave/root/.ssh chmod go-rwx /opt/cluster/slave/root/.ssh/id_rsa chmod a+rwx /opt/tftp + +echo "">/var/log/atftpd.log +chown nobody /var/log/atftpd.log + +update-initramfs -u echo 'Finalized.' # our interfaces file gets written over for some reason, we'll copy it and restore it on first boot @@ -65,5 +72,8 @@ mv /etc/rc.local /etc/rc.local.original cp /media/cdrom/simple-cdd/myrc.local /etc/rc.local echo 'Script copied.' +echo 'Deleting simple-cdd files on disk..' +rm -r /usr/local/simple-cdd +echo 'Script deleted' umount /media/cdrom