def set_restart_delay(seconds):
 if ((seconds % 30) != 0):
  msg = 'Invalid value passed for seconds.\nMust be a multiple of 30.\nPassed: {0}'.format(seconds)
  raise SaltInvocationError(msg)
 cmd = 'systemsetup -setwaitforstartupafterpowerfailure {0}'.format(seconds)
 salt.utils.mac_utils.execute_return_success(cmd)
 return salt.utils.mac_utils.confirm_updated(seconds, get_restart_delay)

def set_restart_delay ( seconds ) : if ( ( seconds % 30 ) != 0 ) : msg = 'Invalid value passed for seconds.\nMust be a multiple of 30.\nPassed: {0}' . format ( seconds ) raise SaltInvocationError ( msg ) cmd = 'systemsetup -setwaitforstartupafterpowerfailure {0}' . format ( seconds ) salt . utils . mac_utils . execute_return_success ( cmd ) return salt . utils . mac_utils . confirm_updated ( seconds , get_restart_delay )
set the number of seconds after which the computer will start up after a power failure .