@@ -84,6 +84,40 @@
#
echo "12:2345:respawn:/sbin/agetty -n -L -l /usr/sbin/bios-installer 115200 tty12" >> /etc/inittab
+mkdir -p /etc/sysconfig/network/scripts
+cat > /etc/sysconfig/network/scripts/dsu-up.sh << EOF
+#!/bin/bash
+SCRIPTNAME=$0
+
+function add_dsu_repo {
+ WGET=$(which wget 2>/dev/null)
+ BASH=$(which bash 2>/dev/null)
+ if [ -x "${WGET}" -a -x "${BASH}" ] ; then
+ ${WGET} -q -O - http://linux.dell.com/repo/hardware/dsu/bootstrap.cgi | ${BASH}
+ fi
+}
+
+function install_dsu {
+ ZYPPER=$(which zypper 2>/dev/null)
+ if [ -x "${ZYPPER}" ] ; then
+ ${ZYPPER} -n in dell-system-update
+ fi
+}
+
+case $SCRIPTNAME in
+*if-up.d*)
+ add_dsu_repo
+ install_dsu
+;;
+*if-down.d*)
+ :
+;;
+esac
+EOF
+
+chmod +x /etc/sysconfig/network/scripts/dsu-up.sh
+ln -s /etc/sysconfig/network/scripts/dsu-up.sh /etc/sysconfig/network/if-up.d/dsu
+
chown root:root /build-custom
chmod 755 /build-custom
# run custom build_script after build
|