New to list and question

Daniel Segall dan at half-asleep.com
Thu Mar 2 16:08:35 UTC 2006


On 3/2/2006, "Daniel Segall" <dan at half-asleep.com> wrote:

># Execute our post install
>if [ -f /root/linux-postinstall.sh ]; then
>        echo " * Executing Post-Install..."
>        chmod +x /root/linux-postinstall.sh
>else
>        echo "Can't find linux-postinstall.sh."
>fi
>
># We done.
>echo " * Post-Install complete. System rebooting." >>/root/ks.log
>echo " * Post-Install complete. System rebooting."
>chvt 3
>sleep 10
>exit 0
>#EOF
>
>
>Hope that helps a bit.
>
>
>-Dan
>
>_______________________________________________
>Kickstart-list mailing list
>Kickstart-list at redhat.com
>https://www.redhat.com/mailman/listinfo/kickstart-list
>

I seemed to have missed a line here. It's obviously missing the exec
line. It should look like this:

# Execute our post install
if [ -f /root/linux-postinstall.sh ]; then
        echo " * Executing Post-Install..."
        chmod +x /root/linux-postinstall.sh
        exec /root/linux-postinstall.sh
else
        echo "Can't find linux-postinstall.sh."
fi

# We done.
echo " * Post-Install complete. System rebooting."
chvt 3
sleep 10
exit 0
#EOF


-Dan




More information about the Kickstart-list mailing list