add reboot option, change autoinstall option

Bug #522802 reported by Todd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UNetbootin
New
Undecided
Unassigned

Bug Description

It would be nice to have a reboot option added to fully automate unetbootin from the command line. Also, what about about changing overwriteall to true when the autoinstall option is specified?

unetbootin.cpp

152d151
< reboot = "";
160a160
> overwriteall = false;
356,365d355
< else if (pfirst.contains("reboot", Qt::CaseInsensitive))
< {
< if (psecond.contains('y', Qt::CaseInsensitive))
< reboot = "y";
< else if (psecond.contains('n', Qt::CaseInsensitive))
< {
< sdesc4->setText(QApplication::translate("unetbootinui", "4. Installation Complete", 0, QApplication::UnicodeUTF8));
< reboot = "n";
< }
< }
369,370d358
< {
< overwriteall = true;
372d359
< }
2902,2906c2889
< if (reboot == "y")
< sysreboot();
< else if (reboot == "n")
< exit(0);
< else
---
> if (installType == tr("Hard Disk"))
2908,2915c2891,2895
< if (installType == tr("Hard Disk"))
< {
< rebootmsgtext->setText(tr("After rebooting, select the "UNETBOOTINB" menu entry to boot.%1\nReboot now?").arg(postinstmsg));
< }
< if (installType == tr("USB Drive"))
< {
< rebootmsgtext->setText(tr("After rebooting, select the USB boot option in the BIOS boot menu.%1\nReboot now?").arg(postinstmsg));
< }
---
> rebootmsgtext->setText(tr("After rebooting, select the "UNETBOOTINB" menu entry to boot.%1\nReboot now?").arg(postinstmsg));
> }
> if (installType == tr("USB Drive"))
> {
> rebootmsgtext->setText(tr("After rebooting, select the USB boot option in the BIOS boot menu.%1\nReboot now?").arg(postinstmsg));

unetbootin_h.cpp

166d165
< QString reboot;

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.