#pragma implementation #include "nfsconf.h" #include "nfsconf.m" #include MODULE_DEFINE_VERSION(nfsconf); static const char *keymenu=NULL; ("nfsconf",PACKAGE_REV); tb.add (new SSTRING(MSG_U(T_USAGE ,"linuxconf --modulemain nfsconf usage\n" "\n" " nfsconf --option ...\n"))); if (context == MENU_NETWORK_SERVER){ keymenu = MSG_U(M_nfsconf,"Exported file systems (NFS)"); dia.new_menuitem ("nfs","",keymenu); } if (context == MENU_NETWORK_SERVER){ if (key == keymenu){ CONTEXT_LOCK l("nfsconf"); if (l.isok()){ exports_edit(); } } } return 0; int ret = LNCF_NOT_APPLICABLE; #if 0 // ### Check the variable key to provide your own html hook ret = 0; #endif return ret; int ret = -1; if (argc == 1){ CONTEXT_LOCK l("nfsconf"); if (l.isok()){ exports_edit(); } }else{ printusage(); } return ret;