#pragma implementation #include "diskconf.h" #include "diskconf.m" #include #include static HELP_FILE help_diskconf ("diskconf","diskconf"); MODULE_DEFINE_VERSION(diskconf); static const char *keymenu=NULL; static void diskconf_menu() { static const char *menuopt[]={ MSG_U(M_DEFINE,"Define"), MSG_U(M_VOLUMES,"disk volumes"), MSG_U(M_MODIFY,"Modify"), MSG_U(M_EXISTING,"Existing volumes"), NULL,NULL }; (MSG_U(T_DISKCONF,"Volumes & partitions manager") ,MSG_U(I_DISKCONF,"You can partition hard drives and maps\n" "those partition to volumes or file systems") ,help_diskconf,menuopt); if (perm_rootaccess(MSG_U(P_DISKCONF,"Manage disk partition/volumes"))){ if (no == 0){ }else if (no == 1){ } } } ("diskconf",PACKAGE_REV); tb.add (new SSTRING(MSG_U(T_USAGE ,"linuxconf --modulemain diskconf usage\n" "\n" " diskconf --option ...\n"))); if (context == MENU_FSCONF){ keymenu = MSG_U(M_diskconf,"Hard drive and volume manager"); dia.new_menuitem ("diskconf","",keymenu); } if (context == MENU_FSCONF){ if (key == keymenu){ diskconf_menu(); } } 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){ diskconf_menu(); }else{ printusage(); } return ret;