def set_wake_on_modem(enabled):
 state = salt.utils.mac_utils.validate_enabled(enabled)
 cmd = 'systemsetup -setwakeonmodem {0}'.format(state)
 salt.utils.mac_utils.execute_return_success(cmd)
 return salt.utils.mac_utils.confirm_updated(state, get_wake_on_modem)

def set_wake_on_modem ( enabled ) : state = salt . utils . mac_utils . validate_enabled ( enabled ) cmd = 'systemsetup -setwakeonmodem {0}' . format ( state ) salt . utils . mac_utils . execute_return_success ( cmd ) return salt . utils . mac_utils . confirm_updated ( state , get_wake_on_modem )
set whether or not the computer will wake from sleep when modem activity is detected .