summaryrefslogtreecommitdiffstats
path: root/rules/rootfs_configfiles.in
blob: 6cbd677922e98c034029b4d911d67b9ee613930c (plain)
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
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
# ----------------------------------------------------------------------------
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 PTXCONF_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

	config ROOTFS_ETC_CONSOLE
		depends on ROOTFS_INITTAB
		string
		default "/dev/tts/0"
		prompt "start getty on this console"
		help
		  This string will be used wherever the placeholder @CONSOLE@ in
		  the source file for /etc/inittab occures.

	config ROOTFS_ETC_CONSOLE_SPEED
		depends on ROOTFS_INITTAB
		string
		default "115200"
		prompt "getty baudrate"
		help
		  This string will be used wherever the placeholder @SPEED@ in
		  the source file for /etc/inittab occures.

#
# /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

		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
	endchoice

#
# /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. If you are using the placeholders @PS1@,
			  @PS2@, and @PS3@ they will be replaced by the string
			  settings below.

	endchoice

	config ROOTFS_ETC_PS1
		depends on ROOTFS_PROFILE
		string
		default "\\u@\\h:\\w"
		prompt "set PS1 in /etc/profile"

	config ROOTFS_ETC_PS2
		depends on ROOTFS_PROFILE
		string
		default ""
		prompt "set PS2 in /etc/profile"

	config ROOTFS_ETC_PS4
		depends on ROOTFS_PROFILE
		string
		default ""
		prompt "set PS4 in /etc/profile"

#
# /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/resolv.conf
#
menuconfig ROOTFS_RESOLV
	depends on ROOTFS
	bool
	prompt "/etc/resolv.conf            "
	default y
	help
	  Installs a /etc/resolv.conf file from a selectable source.

	choice
		prompt "Kind of /etc/resolv.conf"
		depends on ROOTFS_RESOLV
		default ROOTFS_GENERIC_RESOLV

		config ROOTFS_GENERIC_RESOLV
			bool
			prompt "Use generic"
			help
			  Install a generic /etc/resolv.conf file. See
			  <ptxdist-install>/generic/resolv.conf.

		config ROOTFS_USER_RESOLV
			bool
			prompt "User defined"
			help
			  This uses a user defined /etc/resolv.conf. PTXdist
			  uses file projectroot/etc/resolv.conf 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/syslog-ng.conf
#
menuconfig ROOTFS_SYSLOGNG
	depends on SYSLOGNG
	depends on ROOTFS
	bool
	prompt "/etc/syslog-ng.conf         "
	default y
	help
	  Installs a /etc/syslog-ng.conf file from a selectable source.

	choice
		prompt "Kind of /etc/syslog-ng.conf"
		depends on ROOTFS_SYSLOGNG
		default ROOTFS_GENERIC_SYSLOGNG

		config ROOTFS_GENERIC_SYSLOGNG
			bool
			prompt "Use generic"
			help
			  Install a generic /etc/syslog-ng.conf file. See
			  <ptxdist-install>/generic/syslog-ng.conf.

		config ROOTFS_USER_SYSLOGNG
			bool
			prompt "User defined"
			help
			  This uses a user defined /etc/syslog-ng.conf. PTXdist
			  uses file projectroot/etc/syslog-ng.conf in your local
			  project.

	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
#
menuconfig ROOTFS_UDHCPC
	depends on ROOTFS
	depends on BB_CONFIG_UDHCPC
	select ROOTFS_RESOLV
	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.

	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/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

#
# /etc/ipkg.conf
#
config ROOTFS_GENERIC_IPKG_CONF
	depends on ROOTFS
	depends on IMAGE_IPKG
	bool
	prompt "/etc/ipkg.conf              "
	help
	  Installs a generic /etc/ipkg.conf file.

	config ROOTFS_GENERIC_IPKG_CONF_URL
		depends on ROOTFS_GENERIC_IPKG_CONF
		string
		prompt "IPKG Update Site URL"
		default "http://some/path"
		help
		  This path is put into the /etc/ipkg.conf file and specifies
		  where to find an IPKG packet feed.

#
# for Busybox' crond only
# /var/spool/cron/crontabs/
# /etc/crond.conf
#
config ROOTFS_USERS_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

#
# /etc/dbus-1/system.conf
#
menuconfig ROOTFS_DBUS_SYSTEM_CONF
	depends on ROOTFS
	depends on DBUS
	bool
	prompt "/etc/dbus-1/system.conf     "
	default y
	help
	  Installs a /etc/dbus-1/system.conf file from a selectable source.

	choice
		prompt "Kind of /etc/dbus-1/system.conf"
		depends on ROOTFS_DBUS_SYSTEM_CONF
		default ROOTFS_GENERIC_DBUS_SYSTEM_CONF

		config ROOTFS_GENERIC_DBUS_SYSTEM_CONF
			bool
			prompt "Use generic"
			help
			  This uses the generic configuration file for your dbus which is
			  shipped with the sources. This configuration is likely to fail
			  because it is thought for a desktop PC.

		config ROOTFS_USER_DBUS_SYSTEM_CONF
			bool
			prompt "User defined"
			help
			  This uses a user defined /etc/dbus-1/system.conf. PTXdist
			  uses file projectroot/etc/dbus-1/system.conf in your local
			  project.

	endchoice

#
# /etc/dbus-1/session.conf
#
menuconfig ROOTFS_DBUS_SESSION_CONF
	depends on ROOTFS
	depends on DBUS
	bool
	prompt "/etc/dbus-1/session.conf    "
	default y
	help
	  Installs a /etc/dbus-1/session.conf file from a selectable source.

	choice
		prompt "Kind of /etc/dbus-1/system.conf"
		depends on ROOTFS_DBUS_SESSION_CONF
		default ROOTFS_GENERIC_DBUS_SESSION_CONF

		config ROOTFS_GENERIC_DBUS_SESSION_CONF
			bool
			prompt "Use generic"
			help
	  	  This uses the generic configuration file for your dbus which is
				shipped with the sources. This configuration is likely to fail
				because it is thought for a desktop PC.

		config ROOTFS_USER_DBUS_SESSION_CONF
			bool
			prompt "User defined"
			help
				This uses a user defined /etc/dbus-1/session.conf. PTXdist
				uses file projectroot/etc/dbus-1/session.conf in your local
				project.

	endchoice

endmenu