added: execute the off command before exiting
This commit is contained in:
parent
a62a639172
commit
008ab9a0e4
1 changed files with 7 additions and 0 deletions
|
@ -186,6 +186,13 @@ void CAmpSwitch::Process()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
//if the off command is passed on the command line, execute that before exiting
|
||||
if (m_offcommand)
|
||||
{
|
||||
printf("switching off, executing \"%s\"\n", m_offcommand);
|
||||
system(m_offcommand);
|
||||
}
|
||||
}
|
||||
|
||||
void CAmpSwitch::Cleanup()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue