add gateway for ipmi
[debian6500.git] / simple-cdd / profiles / trc6500.postinst
index be7c904d143bb6a2f1b75da4c61ec58b1498dd48..43bb17857bf44ab4bc6394149adeb96df978884b 100755 (executable)
@@ -19,8 +19,6 @@ echo 'force-confnew' > /etc/dpkg/dpkg.cfg.d/trc6500
 # now we unpack our master archive and replace all those conf files and scripts and things
 echo 'Unpacking master config files...'
 dpkg -i /media/cdrom/simple-cdd/trc6500-master-file* # version-proof
-chown root /etc/cron.d/getswitchtemp
-chown root /root/bin/get_switch_temperature
 echo 'Files unpacked'
 
 echo 'Adding TRC6500 public key to keyring...'
@@ -28,7 +26,8 @@ cat /media/cdrom/simple-cdd/TRC6500.pub | apt-key add -
 echo 'Key added'
 
 echo 'Removing exim packages...'
-dpkg -l | awk '/exim/ {print $2}' | xargs dpkg --purge
+dpkg -l | awk '/exim/ {print $2}' | xargs dpkg --remove bsd-mailx
+find /media/cdrom0 -name libgnutls-openssl\*_\* -o -name ssmtp_\* -o -name bsd-mailx_\* | xargs dpkg --install
 echo 'Exim remove
 
 # our interfaces file gets written over for some reason, we'll copy it and restore it on first boot
@@ -44,4 +43,7 @@ rm -r /usr/local/simple-cdd
 rm -r /etc/dpkg/dpkg.cfg.d/trc6500
 echo 'Files deleted'
 
+echo 'Umount cdrom'
 umount /media/cdrom
+
+exit 0