[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: New to list and question



On 3/2/2006, "Daniel Segall" <dan 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 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]