mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 17:02:58 +02:00
firstsetup: add reboot if setup was not finnished.
This commit is contained in:
@@ -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
0
src/initscripts/init.d/openvmtools
Executable file → Normal 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");
|
||||
|
||||
Reference in New Issue
Block a user