]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/misc-progs/updxlratorctrl.c
9 int main(int argc
, char *argv
[]){
11 printf("invalid parameter(s)\n");
18 if (strcmp(argv
[1], "cron") == 0){
19 safe_system("rm /etc/fcron.*/updxlrator 2&>/dev/null");
21 if (strcmp(argv
[2], "daily") == 0){
22 safe_system("ln -s /var/ipfire/updatexlrator/bin/checkup /etc/fcron.daily/updxlrator");
23 } else if (strcmp(argv
[2], "weekly") == 0){
24 safe_system("ln -s /var/ipfire/updatexlrator/bin/checkup /etc/fcron.weekly/updxlrator");
25 } else if (strcmp(argv
[2], "monthly") == 0){
26 safe_system("ln -s /var/ipfire/updatexlrator/bin/checkup /etc/fcron.monthly/updxlrator");
28 printf("invalid parameter(s)\n");