case DEVICE_TYPE_USB:
return _("USB");
case DEVICE_TYPE_OPTICAL:
- return _("Optical");
+ return _("CD/DVD");
case DEVICE_TYPE_NETWORK:
return _("Network");
case DEVICE_TYPE_ANY:
return DEVICE_TYPE_UNKNOWN;
}
+
+bool config_autoboot_active(const struct config *config)
+{
+ enum ipmi_bootdev bootdev = config->ipmi_bootdev;
+
+ if (!config->autoboot_enabled)
+ return false;
+ if (bootdev == IPMI_BOOTDEV_SETUP || bootdev == IPMI_BOOTDEV_SAFE)
+ return false;
+
+ return true;
+}