#!/bin/sh # Install packages (datastream format) for PACKAGE in \ openssl-0.9.7c-sol8-sparc-local \ zlib-1.1.4-sol8-sparc-local \ libgcc-3.3-sol8-sparc-local \ openssh-3.7.1p2-sol8-sparc-local \ ANDIrand-0.7-5.8-sparc-1.pkg \ wget-1.8.2-sol8-sparc-local \ CISscan do echo "Installing ${PACKAGE}..." echo "1" | pkgadd -n -R /a -a ${SI_CONFIG_DIR}/pkgs/admin -d ${SI_CONFIG_DIR}/pkgs/${PACKAGE} > /dev/null 2>&1 done # Install DiskSuite 4.2.1 (file system format) echo "Installing DiskSuite 4.2.1..." for PACKAGE in \ SUNWlvma \ SUNWmdg \ SUNWlvmr \ SUNWlvmg \ SUNWmdu \ SUNWmdr \ SUNWmdnu \ SUNWmdnr \ SUNWmdx do echo "1" | pkgadd -n -R /a -a ${SI_CONFIG_DIR}/pkgs/admin -d ${SI_CONFIG_DIR}/pkgs ${PACKAGE} > /dev/null 2>&1 done # Install fix-modes echo "Installing fix-modes..." cp ${SI_CONFIG_DIR}/pkgs/fix-modes.tar.Z /a/usr/local cd /a/usr/local; zcat fix-modes.tar.Z | tar xf -; rm fix-modes.tar.Z # Copy one-time OpenSSH installation file to /etc/rc2.d cp ${SI_CONFIG_DIR}/scripts/S97OpenSSHinstall /a/etc/rc2.d # Copy OpenSSH startup/shutdown script to /etc/init.d cp ${SI_CONFIG_DIR}/scripts/sshd /a/etc/init.d # Copy one-time OS hardening script to /etc/rc2.d cp ${SI_CONFIG_DIR}/scripts/harden /a/usr/local/bin/initial_OS_hardening chmod 000 /a/usr/local/bin/initial_OS_hardening cp ${SI_CONFIG_DIR}/scripts/harden /a/etc/rc2.d/S06harden echo 'rm $0' >> /a/etc/rc2.d/S06harden # Copy install_patch_cluster script to /usr/local/bin cp ${SI_CONFIG_DIR}/scripts/install_patch_cluster /a/usr/local/bin # Copy mirror_boot_disk script to /usr/local/bin cp ${SI_CONFIG_DIR}/scripts/mirror_boot_disk /a/usr/local/bin # Copy README to / cp ${SI_CONFIG_DIR}/scripts/README /a # Disable power management questions touch /a/noautoshutdown