File: intro-7.html

package info (click to toggle)
linuxconf 1.26r4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 56,432 kB
  • ctags: 27,217
  • sloc: cpp: 158,803; perl: 7,484; sh: 4,134; java: 3,105; ansic: 2,492; makefile: 2,216; python: 109
file content (70 lines) | stat: -rw-r--r-- 2,076 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>shellmod: Module builder</TITLE>
 <LINK HREF="intro-6.html" REL=previous>
 <LINK HREF="intro.html#toc7" REL=contents>
</HEAD>
<BODY>
Next
<A HREF="intro-6.html">Previous</A>
<A HREF="intro.html#toc7">Contents</A>
<HR>
<H2><A NAME="s7">7. Module builder</A></H2>

<P>A shell module builder is available to get you started faster.
You access this builder from shellmod main menu or with the shellmod
utility:
<P>
<BLOCKQUOTE><CODE>
<PRE>
        shellmod --build
        
</PRE>
</CODE></BLOCKQUOTE>
<P>A single dialog appears. You fill it and this create the framework
for a new shell module. Here are the various fields
<P>
<H2><A NAME="ss7.1">7.1 Path of the module</A>
</H2>

<P>You simply enter the full or relative path of the new shell script
you want to create. The builder is not able to edit an existing
module.
<P>
<H2><A NAME="ss7.2">7.2 Insert in menu</A>
</H2>

<P>You must supply the menu id of the menu in which you want to insert
the module (in Linuxconf). A module may insert in several
Linuxconf menus, but the builder only supports one. Modifying the
code later is easy.
<P>This field has a help list to pick the proper ID.
<P>
<H2><A NAME="ss7.3">7.3 Menu title</A>
</H2>

<P>Just enter the text of the menu entry.
<P>
<H2><A NAME="ss7.4">7.4 This is a user account co-manager</A>
</H2>

<P>By selecting this check-box, you instruct the builder to generate
the proper co-manager function templates (setupdia,save,deluser,validate).
<P>Note that a module may be a co-manager and insert in menus as well.
<P>
<H2><A NAME="ss7.5">7.5 Main menu entries</A>
</H2>

<P>You simply enter the various menu entries. For each one, the builder
will generate a shell function template menufunc1, menufunc2. It
will also generate the menu code in the main function. You will
have to provide the code for the various menufunc functions.
<P>
<HR>
Next
<A HREF="intro-6.html">Previous</A>
<A HREF="intro.html#toc7">Contents</A>
</BODY>
</HTML>