firstsetup: add reboot if setup was not finnished.

This commit is contained in:
Arne Fitzenreiter
2010-12-24 01:02:57 +01:00
parent ceb5098e57
commit e238e4c25b
3 changed files with 14 additions and 0 deletions

View File

@@ -2,6 +2,10 @@
/etc/init.d/sysklogd start
export LANG=en_US.utf8
/usr/local/sbin/setup /dev/tty2 INSTALL
if [ "${?}" == "1" ]; then
echo Setup not finished. Rebooting ...
reboot -f
fi
echo Restarting udev...
killall udevd
/sbin/udevd --daemon

0
src/initscripts/init.d/openvmtools Executable file → Normal file
View File

View File

@@ -199,7 +199,17 @@ EXIT:
if (autook)
newtWinMessage(title, ctr[TR_OK], ctr[TR_SETUP_FINISHED]);
else
{
newtWinMessage(ctr[TR_WARNING], ctr[TR_OK], ctr[TR_SETUP_NOT_COMPLETE]);
fprintf(flog, "Setup program not finnished.\n");
fflush(flog);
fclose(flog);
newtFinished();
return 1;
}
}
fprintf(flog, "Setup program ended.\n");