X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=simple-cdd%2Fprofiles%2Ftrc6500.postinst;h=be7c904d143bb6a2f1b75da4c61ec58b1498dd48;hb=9cce4fe28ef5a72d8e24c97a5b1075f23599aced;hp=4a808e83f7de2605d68db16875a67babb8820376;hpb=21162fa10adc036a96bf099eabb94a5823d0f434;p=debian6500.git diff --git a/simple-cdd/profiles/trc6500.postinst b/simple-cdd/profiles/trc6500.postinst index 4a808e8..be7c904 100755 --- a/simple-cdd/profiles/trc6500.postinst +++ b/simple-cdd/profiles/trc6500.postinst @@ -9,33 +9,37 @@ mount /dev/cdrom /media/cdrom # first we install the packages we couldn't install automatically -echo 'Installing additional package : firmware-bnx2..' +echo 'Installing additional package : firmware-bnx2...' dpkg -i /media/cdrom/simple-cdd/firmware-bnx2_0.36+wheezy.1_all.deb -echo 'Additional packages installed.' +echo 'Additional packages installed' #debugging 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-files* # version-proof +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 'Files unpacked' -echo 'Adding TRC6500 public key to keyring..' +echo 'Adding TRC6500 public key to keyring...' cat /media/cdrom/simple-cdd/TRC6500.pub | apt-key add - -echo 'Key added.' +echo 'Key added' + +echo 'Removing exim packages...' +dpkg -l | awk '/exim/ {print $2}' | xargs dpkg --purge +echo 'Exim remove # our interfaces file gets written over for some reason, we'll copy it and restore it on first boot # note : after install, we'll be executing our own rc.local on first boot -echo 'Placing first-boot script (/etc/rc.local)..' +echo 'Copying first-boot script (/etc/rc.local)...' cp /etc/network/interfaces /etc/network/interfaces.original mv /etc/rc.local /etc/rc.local.original cp /media/cdrom/simple-cdd/myrc.local /etc/rc.local -echo 'Script copied.' +echo 'Script copied' -echo 'Deleting simple-cdd files on disk..' +echo 'Deleting simple-cdd files on disk...' rm -r /usr/local/simple-cdd rm -r /etc/dpkg/dpkg.cfg.d/trc6500 echo 'Files deleted'