Added scripts from lgcore
[debian6500.git] / simple-cdd / profiles / trc6500.postinst
index 01231b82e9c6ff65b6eabed5ba7f5490ec623cbb..c37271469669c08814617f44b7815f715b539bfd 100755 (executable)
@@ -14,7 +14,7 @@ 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.'
@@ -57,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