finished: use generic shutdown command

- it doesn't make any sense to have restartNowCommand and fallback
  set to the same command.
- also fallback should be something generic every init supports
This commit is contained in:
Gabriel C 2017-10-04 13:13:33 +02:00
parent 1491a02802
commit 30e56e1566

View File

@ -178,7 +178,7 @@ FinishedViewStep::setConfigurationMap( const QVariantMap& configurationMap )
configurationMap.value( "restartNowCommand" ).type() == QVariant::String )
m_widget->setRestartNowCommand( configurationMap.value( "restartNowCommand" ).toString() );
else
m_widget->setRestartNowCommand( "systemctl -i reboot" );
m_widget->setRestartNowCommand( "shutdown -r now" );
}
}
if ( configurationMap.contains( "notifyOnFinished" ) &&