/* * Copyright (c) 1996 Joerg Reuter (jreuter@poboxes.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA * 02110-1301, USA. * */ #include #include #include #include #include #include #include #include #include #include #include #include "../pathnames.h" static const struct option lopts[] = { {"add", 1, NULL, 'a'}, {"del", 1, NULL, 'd'}, {"list", 1, NULL, 'l'}, {"expire", 1, NULL, 'e'}, {"save", 0, NULL, 's'}, {"reload", 0, NULL, 'r'}, {"shutdown", 0, NULL, 'q'}, {"Version", 0, NULL, 'V'}, {"help", 0, NULL, 'h'}, {"debug", 0, NULL, 'x'}, {"version", 0, NULL, 'v'}, {NULL, 0, NULL, 0} }; static const char *sopts = "a:d:l:e:srqvVh"; static void usage(void) { fprintf(stderr, "usage:\n"); fprintf(stderr, "ax25rtctl -a|--add ax25