]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/misc-progs/launch-ether-wake.c
1 /* This file is part of the Wake-on-LAN GUI AddOn
3 * This program is distributed under the terms of the GNU General Public
4 * Licence. See the file COPYING for details.
6 * Copyright (C) 2006-03-03 weizen_42
15 #include <sys/types.h>
20 #define BUFFER_SIZE 512
22 char command
[BUFFER_SIZE
];
24 int main(int argc
, char *argv
[])
29 snprintf(command
, BUFFER_SIZE
-1, "/usr/sbin/etherwake -i %s %s", argv
[2], argv
[1]);