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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
|
## SECTION=rootfs
# ----------------------------------------------------------------------------
menu "config files "
# ----------------------------------------------------------------------------
#
# /etc/passwd
#
menuconfig ROOTFS_PASSWD
depends on ROOTFS
bool
prompt "/etc/passwd "
default y
help
Installs a /etc/passwd file from a selectable source.
choice
prompt "Kind of /etc/passwd"
depends on ROOTFS_PASSWD
default ROOTFS_GENERIC_PASSWD
config ROOTFS_GENERIC_PASSWD
bool
prompt "Use generic"
help
Installs a generic /etc/passwd file. This file does
not offer any security, the root login is without a
password. So don't use it in a network environment
which is available to the outside.
See <ptxdist-install>/generic/passwd
config ROOTFS_USER_PASSWD
bool
prompt "User defined"
help
This uses a user defined passwd. PTXdist uses file
projectroot/etc/passwd in your local project
endchoice
#
# /etc/shadow, /etc/shadow-
#
menuconfig ROOTFS_SHADOW
depends on ROOTFS
bool
prompt "/etc/shadow, /etc/shadow- "
default y
help
Installs a /etc/shadow and /etc/shadow- file from a selectable source.
choice
prompt "Kind of /etc/shadow|shadow-"
depends on ROOTFS_SHADOW
default ROOTFS_GENERIC_SHADOW
config ROOTFS_GENERIC_SHADOW
bool
prompt "Use generic"
help
Installs a generic /etc/shadow and /etc/shadow- file.
See <ptxdist-install>/generic/etc/shadow|shadow-
config ROOTFS_USER_SHADOW
bool
prompt "User defined"
help
This uses a user defined shadow|shadow-. PTXdist uses
files projectroot/etc/shadow|shadow- in your local
project
endchoice
#
# /etc/group, /etc/gshadow
#
menuconfig ROOTFS_GROUP
depends on ROOTFS
bool
prompt "/etc/group, /etc/gshadow "
default y
help
Installs a /etc/group and /etc/gshadow file from a selectable source.
choice
prompt "Kind of /etc/group|gshadow"
depends on ROOTFS_GROUP
default ROOTFS_GENERIC_GROUP
config ROOTFS_GENERIC_GROUP
bool
prompt "Use generic"
help
Installs a generic /etc/group and /etc/gshadow file.
See <ptxdist-install>/generic/group|gshadow
config ROOTFS_USER_GROUP
bool
prompt "User defined"
help
This uses a user defined group|gshadow. PTXdist uses files
projectroot/etc/group|gshadow in your local project
endchoice
#
# /etc/fstab
#
menuconfig ROOTFS_FSTAB
depends on ROOTFS
bool
prompt "/etc/fstab "
default y
help
Installs a /etc/fstab file from a selectable source.
choice
prompt "Kind of /etc/fstab"
depends on ROOTFS_FSTAB
default ROOTFS_GENERIC_FSTAB
config ROOTFS_GENERIC_FSTAB
bool
prompt "Use generic"
help
This uses a generic fstab for this project. See
<ptxdist-install>/generic/fstab
config ROOTFS_USER_FSTAB
bool
prompt "User defined"
help
This uses a user defined fstab. PTXdist uses file
projectroot/etc/fstab in your local project
endchoice
#
# /etc/mtab
#
menuconfig ROOTFS_MTAB
depends on ROOTFS
bool
prompt "/etc/mtab "
default y
help
Installs a /etc/mtab file from a selectable source.
choice
prompt "Kind of /etc/mtab"
depends on ROOTFS_MTAB
default ROOTFS_GENERIC_MTAB
config ROOTFS_GENERIC_MTAB
bool
prompt "Use link"
help
Installs a link to /proc/mounts as /etc/mtab. Some tools
like those from the e2fs-tools suite need this file to
function properly. However, it is a good idea to keep this
file around, since a real /etc/mtab would have to be
read-write to be accurate, which is not a good idea in
embedded environments with ro-mounted rootfs.
config ROOTFS_USER_MTAB
bool
prompt "User defined"
help
This uses a user defined fstab. PTXdist uses file
projectroot/etc/mtab in your local project
endchoice
#
# /etc/hostname
#
menuconfig ROOTFS_HOSTNAME
depends on ROOTFS
bool
prompt "/etc/hostname "
default y
help
Installs a generic /etc/hostname file.
choice
prompt "Kind of /etc/hostname"
depends on ROOTFS_HOSTNAME
default ROOTFS_GENERIC_HOSTNAME
config ROOTFS_GENERIC_HOSTNAME
bool
prompt "Use generic"
help
Installs a generic /etc/hostname file.
See <ptxdist-install>/generic/hostname
config ROOTFS_USER_HOSTNAME
bool
prompt "User defined"
help
This uses a user defined /etc/hostname. PTXdist uses
file projectroot/etc/hostname in your local project
endchoice
config ROOTFS_ETC_HOSTNAME
depends on ROOTFS_HOSTNAME
depends on ROOTFS_GENERIC_HOSTNAME
string
default ptx
prompt "set hostname in /etc/hostname"
#
# /etc/hosts
#
menuconfig ROOTFS_HOSTS
depends on ROOTFS
bool
prompt "/etc/hosts "
default y
help
Installs a /etc/hosts file from a selectable source.
choice
prompt "Kind of /etc/hosts"
depends on ROOTFS_HOSTS
default ROOTFS_GENERIC_HOSTS
config ROOTFS_GENERIC_HOSTS
bool
prompt "Use generic"
help
Installs a generic /etc/hosts file.
See <ptxdist-install>/generic/hosts
config ROOTFS_USER_HOSTS
bool
prompt "User defined"
help
This uses a user defined /etc/hosts. PTXdist uses file
projectroot/etc/hosts in your local project
endchoice
#
# /etc/inittab
#
menuconfig ROOTFS_INITTAB
depends on ROOTFS
select BB_CONFIG_GETTY if BUSYBOX
bool
prompt "/etc/inittab "
default y
help
Installs a /etc/inittab file from a selectable source.
choice
prompt "Kind of /etc/inittab"
depends on ROOTFS_INITTAB
default ROOTFS_GENERIC_INITTAB
config ROOTFS_GENERIC_INITTAB
bool
prompt "Use generic"
help
Installs a generic /etc/inittab file.
See <ptxdist-install>/generic/inittab
config ROOTFS_USER_INITTAB
bool
prompt "User defined"
help
This uses a user defined /etc/inittab. PTXdist uses file
projectroot/etc/inittab in your local project.
Note: The placeholders @SPEED@ and @CONSOLE@ will be
replaced before installing with the values below.
See <ptxdist-install>/generic/inittab how to use them.
endchoice
#
# /etc/nsswitch
#
menuconfig ROOTFS_NSSWITCH
depends on ROOTFS
bool
prompt "/etc/nsswitch.conf "
default y
help
Installs a /etc/nsswitch.conf file from a selectable source.
choice
prompt "Kind of /etc/nsswitch.conf"
depends on ROOTFS_NSSWITCH
default ROOTFS_GENERIC_NSSWITCH
config ROOTFS_GENERIC_NSSWITCH
bool
prompt "Use generic"
help
Installs a generic /etc/nsswitch.conf file. See
<ptxdist-install>/generic/nsswitch.conf.
Note: This file only supports local name resolution. It
does not use any DNS service, so it makes no sense to
use a /etc/resolv.conf if this generic file is in use.
config ROOTFS_USER_NSSWITCH
bool
prompt "User defined"
help
This uses a user defined /etc/nsswitch.conf. PTXdist
uses file projectroot/etc/nsswitch.conf in your local
project. Refer "man nsswitch.conf" how to create a
specific file to achive your requirements.
endchoice
#
# /etc/resolv.conf
# This file makes only sense when:
# - dns is activated in nsswitch.conf (our generic one does not so)
# - the network DNS is known
#
config ROOTFS_RESOLV
depends on ROOTFS
depends on ROOTFS_USER_NSSWITCH
bool
prompt "project's /etc/resolv.conf"
help
Installs a /etc/resolv.conf file from projectroot/etc/resolv.conf in
your local project. Refer "man resolv.conf" how to create a specific
file to achive your requirements.
#
# /etc/profile
#
menuconfig ROOTFS_PROFILE
depends on ROOTFS
bool
prompt "/etc/profile "
default y
help
Installs a generic /etc/profile file.
choice
prompt "Kind of /etc/profile"
depends on ROOTFS_PROFILE
default ROOTFS_GENERIC_PROFILE
config ROOTFS_GENERIC_PROFILE
bool
prompt "Use generic"
help
Installs a generic /etc/profile file.
See <ptxdist-install>/generic/profile
config ROOTFS_USER_PROFILE
bool
prompt "User defined"
help
This uses a user defined /etc/profile. PTXdist
uses file projectroot/etc/profile in your local
project.
endchoice
#
# /etc/protocols
#
menuconfig ROOTFS_PROTOCOLS
depends on ROOTFS
bool
prompt "/etc/protocols "
default y
help
Installs a /etc/protocols file from a selectable source.
choice
prompt "Kind of /etc/protocols"
depends on ROOTFS_PROTOCOLS
default ROOTFS_GENERIC_PROTOCOLS
config ROOTFS_GENERIC_PROTOCOLS
bool
prompt "Use generic"
help
Install a generic /etc/protocols file. See
<ptxdist-install>/generic/protocols.
Note: This will provide only the required
entries. If you need a full blown protocols,
use your own.
config ROOTFS_USER_PROTOCOLS
bool
prompt "User defined"
help
This uses a user defined /etc/protocols. PTXdist
uses file projectroot/etc/protocols in your local
project.
endchoice
#
# /etc/inetd.conf
#
menuconfig ROOTFS_INETD
depends on ROOTFS
depends on BB_CONFIG_INETD || INETUTILS_INETD
bool
prompt "/etc/inetd.conf "
default y
help
Installs a /etc/inetd.conf file from a selectable source.
choice
prompt "Kind of /etc/inetd.conf"
depends on ROOTFS_INETD
default ROOTFS_GENERIC_INETD
config ROOTFS_GENERIC_INETD
bool
prompt "Use generic"
help
Install a generic /etc/inetd.conf file. See
<ptxdist-install>/generic/inetd.conf. But there are
mostly placeholders in. It depends on the selections
you made, what placeholders expand to a valid value.
Not selected tools expand their placeholder to empty
space.
config ROOTFS_USER_INETD
bool
prompt "User defined"
help
This uses a user defined /etc/inetd.conf. PTXdist
uses file projectroot/etc/inetd.conf in your local
project. You can also use the placeholders from the
generic part if you like.
endchoice
#
# /etc/modules
#
config ROOTFS_ETC_MODULES
depends on ROOTFS
depends on ROOTFS_ETC_INITD_MODULES
bool
prompt "project's /etc/modules"
default n
help
Installs a /etc/modules file from projectroot/etc/modules in
your local project.
#
# /etc/udhcpc.script
# specific to Busybox' udhcp-client
#
menuconfig ROOTFS_UDHCPC
depends on ROOTFS
depends on BB_CONFIG_APP_UDHCPC
select BB_CONFIG_IFCONFIG
bool
prompt "/etc/udhcpc.script "
default y
help
Installs a /etc/udhcpc.script file from a selectable source.
You have checked busybox' udhcpc feature. It accepts the -s file or
--script=file option. So this /etc/udhcpc.script will be run at dhcp
events.
If your network supports DNS, this script will generate /etc/resolv.conf.
To use this feature, you also need a user defined /etc/nsswitch.conf
file that enables DNS for name resolution. The generic one shipped
with PTXdist does not so.
choice
prompt "Kind of /etc/udhcpc.script"
depends on ROOTFS_UDHCPC
default ROOTFS_GENERIC_UDHCPC
config ROOTFS_GENERIC_UDHCPC
bool
prompt "Use generic"
help
Install a generic /etc/udhcpc.script file. See
<ptxdist-install>/generic/etc/udhcpc.script.
config ROOTFS_USER_UDHCPC
bool
prompt "User defined"
help
This uses a user defined /etc/udhcpc.script. PTXdist
uses file projectroot/etc/udhcpc.script in your local
project.
endchoice
#
# for Busybox' crond only
# /var/spool/cron/crontabs/
# /etc/crond.conf
#
config ROOTFS_USER_CROND_CONF
depends on ROOTFS
depends on ROOTFS_ETC_INITD_CROND
default n
bool
prompt "project's crond configuration"
help
Install /var/spool/cron/crontabs/root from projectroot/crond/root and
/etc/cron/daily from projectroot/crond/daily
#
# for Busybox' http only
# install users httpd.conf
#
config ROOTFS_BUSYBOX_USER_HTTPD_CONF
depends on ROOTFS
depends on BB_CONFIG_HTTPD
default n
bool
prompt "project's httpd.conf configuration"
help
Install /etc/httpd.conf from projectroot/etc/httpd.conf
Note: This is for the busysbox based httpd only!
# ----------------------------------------------------------------------------
endmenu
|