getswitchtemp fix
[debian6500.git] / simple-cdd / profiles / trc6500.postinst
index 0ad5d6033935beda7368aa64da05294613e6d3e1..01231b82e9c6ff65b6eabed5ba7f5490ec623cbb 100755 (executable)
@@ -15,6 +15,8 @@ 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 /
+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.
@@ -65,5 +67,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