#include #include #include #include #include #include "shellmod.m" #include "shellmod.h" #include "protocol.h" #include "../../paths.h" static void usage() { fprintf (stderr ,MSG_U(I_PRGUSAGE ,"shellmod [ --debug ] script [ options ]\n" "\n" "\tRun a Linuxconf module/script.\n" "shellmod --build\n" "\n" "\tEnter the builder\n") ); } int perm_getuid() { return getuid(); } bool shellmod_haspriv (const char *) { return true; } int main (int argc, char *argv[]) { int ret = -1; linuxconf_loadlibmsg("/usr/lib/linuxconf"); linuxconf_loadmsg ("shellmod",PACKAGE_REV); argc = dialog_parseuioptions(argc,argv); translat_checkmissing(); const char *pt = strrchr(argv[0],'/'); if (pt != NULL){ pt++; }else{ pt = argv[0]; } #if 0 for (int i=0; i