]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/misc-progs/ddnsctrl.c
1 /* This file is part of the IPFire Firewall.
3 * This program is distributed under the terms of the GNU General Public
4 * Licence. See the file COPYING for details.
15 const char *conffile
= "/var/ipfire/ddns/ddns.conf";
17 int main(int argc
, char *argv
[]) {
18 char cmd
[STRING_SIZE
];
24 fprintf(stderr
, "\nNo argument given.\n\nddnsctrl (update-all)\n\n");
28 if (strcmp(argv
[1], "update-all") == 0) {
29 snprintf(cmd
, sizeof(cmd
), "/usr/bin/ddns --config %s update-all >/dev/null 2>&1", conffile
);
32 fprintf(stderr
, "\nBad argument given.\n\nddnsctrl (update-all)\n\n");