Added scripts from lgcore
[debian6500.git] / simple-cdd / profiles / trc6500.postinst
index 0ad5d6033935beda7368aa64da05294613e6d3e1..c37271469669c08814617f44b7815f715b539bfd 100755 (executable)
@@ -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