diff options
Diffstat (limited to 'src/shell.c')
-rw-r--r-- | src/shell.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c index ade4d53..c5b8332 100644 --- a/src/shell.c +++ b/src/shell.c @@ -150,3 +150,12 @@ int com_ping( char *arg ) sprintf( syscom, "ping %s", arg ); return( system( syscom ) ); } + +int com_poweroff( char *arg ) +{ + if( !arg ) + arg = ""; + + sprintf( syscom, "poweroff %s", arg ); + return( system( syscom ) ); +} |