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
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
|
comment "----------------------------------"
comment "Populate Rootfs"
comment "----------------------------------"
config ROOTFS
bool
prompt "Create Directories in /"
default y
select BB_CONFIG_FEATURE_SHADOWPASSWDS if BUSYBOX
help
FIXME: This item needs to be documented
config ROOTFS_DEV
depends on ROOTFS
bool
prompt "/dev"
default y
help
FIXME: This item needs to be documented
config ROOTFS_DEV_PTS
depends on ROOTFS_DEV
bool
prompt "/dev/pts"
default y
help
FIXME: This item needs to be documented
config ROOTFS_HOME
depends on ROOTFS
bool
prompt "/home"
default y
help
FIXME: This item needs to be documented
# Media Mountpoints
menuconfig ROOTFS_MEDIA
depends on ROOTFS
bool
prompt "/media "
default n
config ROOTFS_MEDIA1
prompt "Mountpoint 1"
string
depends on ROOTFS_MEDIA
help
This string defines a mountpoint directory in /media
config ROOTFS_MEDIA2
prompt "Mountpoint 2"
string
depends on ROOTFS_MEDIA && ROOTFS_MEDIA1!=""
help
This string defines a mountpoint directory in /media
config ROOTFS_MEDIA3
prompt "Mountpoint 3"
string
depends on ROOTFS_MEDIA && ROOTFS_MEDIA2!=""
help
This string defines a mountpoint directory in /media
config ROOTFS_MEDIA4
prompt "Mountpoint 4"
string
depends on ROOTFS_MEDIA && ROOTFS_MEDIA3!=""
help
This string defines a mountpoint directory in /media
config ROOTFS_MEDIA5
prompt "Mountpoint 5"
string
depends on ROOTFS_MEDIA && ROOTFS_MEDIA4!=""
help
This string defines a mountpoint directory in /media
config ROOTFS_MEDIA6
prompt "Mountpoint 6"
string
depends on ROOTFS_MEDIA && ROOTFS_MEDIA5!=""
help
This string defines a mountpoint directory in /media
config ROOTFS_MEDIA7
prompt "Mountpoint 7"
string
depends on ROOTFS_MEDIA && ROOTFS_MEDIA6!=""
help
This string defines a mountpoint directory in /media
config ROOTFS_MEDIA8
prompt "Mountpoint 8"
string
depends on ROOTFS_MEDIA && ROOTFS_MEDIA7!=""
help
This string defines a mountpoint directory in /media
config ROOTFS_MEDIA9
prompt "Mountpoint 9"
string
depends on ROOTFS_MEDIA && ROOTFS_MEDIA8!=""
help
This string defines a mountpoint directory in /media
config ROOTFS_MEDIA10
prompt "Mountpoint 10"
string
depends on ROOTFS_MEDIA && ROOTFS_MEDIA9!=""
help
This string defines a mountpoint directory in /media
# ok, that's all for /media.
config ROOTFS_MNT
depends on ROOTFS
bool
prompt "/mnt"
default y
help
FIXME: This item needs to be documented
config ROOTFS_PROC
depends on ROOTFS
bool
prompt "/proc"
default y
help
Create a /proc directory in the root filesystem.
You should say yes here.
config ROOTFS_SYS
depends on ROOTFS
bool
prompt "/sys"
default y
help
Create a /sys directory in the root filesystem.
2.6 kernel users should say yes here.
config ROOTFS_TMP
depends on ROOTFS
bool
prompt "/tmp"
default y
help
Create a /tmp directory in the root filesystem.
You should say yes here.
config ROOTFS_VAR
depends on ROOTFS
bool
prompt "/var"
default y
help
Create a /var directory in the root filesystem.
You should say yes here.
config ROOTFS_VAR_RUN
depends on ROOTFS_VAR
bool
prompt "/var/run"
default y
help
Create a /var/run directory in the root filesystem.
Unless you want to mount a tmpfs on /var you should
say yes here.
config ROOTFS_VAR_LOG
depends on ROOTFS_VAR
bool
prompt "/var/log"
default y
help
Create a /var/log directory in the root filesystem.
Unless you want to mount a tmpfs on /var you should
say yes here.
config ROOTFS_VAR_LOCK
depends on ROOTFS_VAR
bool
prompt "/var/lock"
default y
help
Create a /var/lock directory in the root filesystem.
Unless you want to mount a tmpfs on /var you should
say yes here.
comment "----------------------------------"
comment "Generic Config Files in /etc"
comment "----------------------------------"
config ROOTFS_GENERIC_FSTAB
depends on ROOTFS
bool
prompt "/etc/fstab"
default y
help
Installs a generic /etc/fstab file.
config ROOTFS_GENERIC_MTAB
depends on ROOTFS
bool
prompt "generic /etc/mtab"
default y
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.
The Default is therefore: Yes
config ROOTFS_GENERIC_GROUP
depends on ROOTFS
bool
prompt "/etc/group, /etc/gshadow"
default y
help
Installs a generic /etc/group and /etc/gshadow file.
menuconfig ROOTFS_GENERIC_HOSTNAME
depends on ROOTFS
bool
prompt "/etc/hostname "
default y
help
Installs a generic /etc/hostname file.
config ROOTFS_ETC_HOSTNAME
depends on ROOTFS_GENERIC_HOSTNAME
string
default ptx
prompt "set hostname in /etc/hostname"
config ROOTFS_GENERIC_HOSTS
depends on ROOTFS
bool
prompt "/etc/hosts"
default y
help
Installs a generic /etc/hosts file.
menuconfig ROOTFS_GENERIC_INITTAB
depends on ROOTFS
bool
select BB_CONFIG_GETTY if BUSYBOX
prompt "/etc/inittab "
default y
help
Installs a generic /etc/inittab file.
config ROOTFS_ETC_CONSOLE
depends on ROOTFS_GENERIC_INITTAB
string
default "/dev/tts/0"
prompt "start getty on this console"
config ROOTFS_ETC_CONSOLE_SPEED
depends on ROOTFS_GENERIC_INITTAB
string
default "115200"
prompt "getty baudrate"
config ROOTFS_GENERIC_IPKG_CONF
depends on ROOTFS
depends on IMAGE_IPKG
bool
default N
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.
config ROOTFS_GENERIC_NSSWITCH
depends on ROOTFS
bool
prompt "/etc/nsswitch.conf"
default y
help
Installs a generic /etc/nsswitch.conf file.
config ROOTFS_GENERIC_PASSWD
depends on ROOTFS
bool
prompt "/etc/passwd"
default y
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.
menuconfig ROOTFS_GENERIC_PROFILE
depends on ROOTFS
bool
prompt "/etc/profile "
default y
help
Installs a generic /etc/profile file.
config ROOTFS_ETC_PS1
depends on ROOTFS_GENERIC_PROFILE
string
default "\\u@\\h:\\w"
prompt "set PS1 in /etc/profile"
config ROOTFS_ETC_PS2
depends on ROOTFS_GENERIC_PROFILE
string
default ""
prompt "set PS2 in /etc/profile"
config ROOTFS_ETC_PS4
depends on ROOTFS_GENERIC_PROFILE
string
default ""
prompt "set PS4 in /etc/profile"
config ROOTFS_GENERIC_PROTOCOLS
depends on ROOTFS
bool
prompt "/etc/protocols"
default y
help
Install a generic /etc/protocols file.
config ROOTFS_GENERIC_RESOLV
depends on ROOTFS
bool
prompt "/etc/resolv.conf"
default y
help
Install a generic /etc/resolv.conf file.
config ROOTFS_GENERIC_INETD
depends on ROOTFS
bool
prompt "/etc/inetd.conf"
default y
help
Install a generic /etc/inetd.conf file.
config ROOTFS_GENERIC_SHADOW
depends on ROOTFS
bool
prompt "/etc/shadow, /etc/shadow-"
default y
help
Install a generic /etc/shadow and /etc/gshadow file.
config ROOTFS_GENERIC_UDHCPC
depends on ROOTFS
depends on BB_CONFIG_UDHCPC
bool
default y
prompt "/etc/udhcpc.script (busybox udhcpc)"
help
udhcpc (busybox) accepts the -s file or --script=file option.
The /etc/udhcpc.script will be run at dhcp events.
comment "----------------------------------"
comment "Start Scripts in /etc/init.d"
comment "----------------------------------"
config ROOTFS_ETC_INITD
depends on ROOTFS
bool
prompt "Generic Scripts for /etc/init.d"
default y
select BB_CONFIG_RUN_PARTS if BUSYBOX
help
When enabled, this option copies the files from
$(PTXDIST_TOPDIR)/projects/generic/etc/init.d to the target root
filesystem. The files contain useful defaults for most projects,
so if you don't intend to use your completely self-made etc
directory you should problably switch this on.
config ROOTFS_ETC_INITD_RCS
bool
prompt "rcS"
depends on ROOTFS_ETC_INITD
default y
help
The /etc/init.d/rcS script is started by init in /etc/inittab.
Its main purpose is to run the other init scripts by calling
run-parts.
menuconfig ROOTFS_ETC_INITD_INETD
depends on ROOTFS_ETC_INITD
bool
default n
prompt "inetd "
select INETUTILS_INETD
help
When enabled, this option installs the generic
/etc/init.d/inetd file. This script starts
your internet super server (inetd).
config ROOTFS_ETC_INITD_INETD_LINK
depends on ROOTFS_ETC_INITD
depends on ROOTFS_ETC_INITD_INETD
string
prompt "link name in /etc/rcS"
default "S11_inetd"
help
Set a link to with this name in /etc/rc.d which points to
/etc/init.d/inetd.
config ROOTFS_ETC_INITD_LOGROTATE
bool
prompt "minimal logrotate"
depends on ROOTFS_ETC_INITD
default n
help
The /etc/init.d/logrotate script is a minimal logrotator.
menuconfig ROOTFS_ETC_INITD_NETWORKING
depends on ROOTFS_ETC_INITD
bool
default y
prompt "networking "
select BB_CONFIG_FEATURE_IFUPDOWN_IP if BUSYBOX
help
When enabled, this option installs the generic
/etc/init.d/networking file. This script starts
your network interfaces by calling ifup -a
config ROOTFS_ETC_INITD_NETWORKING_LINK
depends on ROOTFS_ETC_INITD
depends on ROOTFS_ETC_INITD_NETWORKING
string
prompt "link name in /etc/rcS"
default "S01_networking"
help
Set a link to with this name in /etc/rc.d which points to
/etc/init.d/networking.
config ROOTFS_ETC_INITD_NETWORKING_INTERFACES
depends on ROOTFS_ETC_INITD
depends on ROOTFS_ETC_INITD_NETWORKING
string
prompt "/etc/network/interfaces file"
default "$(PROJECTDIR)/etc/network/interfaces"
help
Copy this file to /etc/network/interfaces.
########################## Telnetd ##########################################
comment "telnetd: select telnet"
depends on ROOTFS_ETC_INITD
depends on ! (UTELNETD || BB_CONFIG_TELNETD)
menuconfig ROOTFS_ETC_INITD_TELNETD
depends on ROOTFS_ETC_INITD
depends on (UTELNETD || BB_CONFIG_TELNETD)
bool
default y
prompt "telnetd "
help
The /etc/init.d/telnetd script starts up your telnet
demon. Depending on your configuration utelnetd or telnetd
is started.
choice
prompt "Kind of startup script"
default ROOTFS_ETC_INITD_TELNETD_DEFAULT
depends on ROOTFS_ETC_INITD
depends on ROOTFS_ETC_INITD_TELNETD
config ROOTFS_ETC_INITD_TELNETD_DEFAULT
depends on ROOTFS_ETC_INITD_TELNETD
bool
prompt "Use default telnetd"
help
A file from projects/generic/etc/init.d/telnetd will be used
config ROOTFS_ETC_INITD_TELNETD_USER
depends on ROOTFS_ETC_INITD_TELNETD
bool
prompt "Use your own telnetd script"
help
Select this, then you can enter a path and filename to your
own httpd startup script
endchoice
config ROOTFS_ETC_INITD_TELNETD_USER_FILE
depends on ROOTFS_ETC_INITD_TELNETD
depends on ROOTFS_ETC_INITD_TELNETD_USER
prompt "Path and name of your own telnetd to be used"
string
default ""
help
Enter a path and filename to be used as telnetd script on your target
config ROOTFS_ETC_INITD_TELNETD_LINK
depends on ROOTFS_ETC_INITD_TELNETD
string
prompt "link name in /etc/rcS"
default "S07_telnetd"
help
Set a link to with this name in /etc/rc.d which points to
/etc/init.d/telnetd.
########################## User startup script ##############################
# FIXME: RSC: needed somewhere? Shold be done by project specific stuff
# if needed.
config ROOTFS_ETC_INITD_STARTUP
depends on ROOTFS_ETC_INITD
bool
default n
prompt "startup"
help
This script runs /home/startup if it exists and is
executable
########################## Banner ##########################################
menuconfig ROOTFS_ETC_INITD_BANNER
depends on ROOTFS_ETC_INITD
bool
default y
prompt "banner "
help
This Option adds a specific vendor string to
the script which displays a nifty ptxdist
_
| |__ __ _ _ __ _ __ ___ _ __
| '_ \ / _` | '_ \| '_ \ / _ \ '__|
| |_) | (_| | | | | | | | __/ |
|_.__/ \__,_|_| |_|_| |_|\___|_|
page with the hostname and other stuff at
startup.
config ROOTFS_ETC_INITD_BANNER_LINK
depends on ROOTFS_ETC_INITD_BANNER
string
prompt "link name in /etc/rcS"
default "S02_banner"
help
Set a link to with this name in /etc/rc.d which points to
/etc/init.d/banner.
config ROOTFS_ETC_VENDOR
depends on ROOTFS_ETC_INITD_BANNER
string
prompt "vendorname in /etc/init.d/banner"
help
Type in here your favorite vendorname. It gets displayed
whenever your system starts.
########################## Apache 2 ##########################################
comment "apache: select apache 2"
depends on ROOTFS_ETC_INITD && !APACHE2
menuconfig ROOTFS_ETC_INITD_HTTPD
depends on ROOTFS_ETC_INITD && APACHE2
bool
default y
prompt "apache "
help
The /etc/init.d/httpd script lets you control the apache daemon.
choice
prompt "Kind of startup scrict"
depends on ROOTFS_ETC_INITD_HTTPD
default ROOTFS_ETC_INITD_HTTPD_DEFAULT
config ROOTFS_ETC_INITD_HTTPD_DEFAULT
bool
prompt "Use default httpd"
help
A file from projects/generic/etc/init.d/httpd will be used.
config ROOTFS_ETC_INITD_HTTPD_USER
bool
prompt "Use your own httpd file"
help
Select this, then you can enter a path and filename to your
own httpd startup script.
endchoice
config ROOTFS_ETC_INITD_HTTPD_USER_FILE
depends on ROOTFS_ETC_INITD_HTTPD
depends on ROOTFS_ETC_INITD_HTTPD_USER
prompt "Path and name of your own httpd to be used"
string
default ""
help
Enter a path and filename to be used as httpd script on your target.
config ROOTFS_ETC_INITD_HTTPD_LINK
depends on ROOTFS_ETC_INITD_HTTPD
string
prompt "link name in /etc/rc.d"
default "S08_httpd"
help
Set a link into /etc/rc.d which points to /etc/init.d/httpd to
start apache when system boots.
########################## udev support ##########################################
comment "udev: select udev"
depends on ROOTFS_ETC_INITD && !UDEV
menuconfig ROOTFS_ETC_INITD_UDEV
depends on ROOTFS_ETC_INITD && UDEV
bool
default yes
prompt "udev "
help
The /etc/init.d/udev script lets you control the udevd daemon.
choice
prompt "Kind of startup scrict"
default ROOTFS_ETC_INITD_UDEV_DEFAULT
depends on ROOTFS_ETC_INITD && ROOTFS_ETC_INITD_UDEV
config ROOTFS_ETC_INITD_UDEV_DEFAULT
depends on ROOTFS_ETC_INITD && ROOTFS_ETC_INITD_UDEV
bool
prompt "Use default udevd"
help
A file from projects/generic/etc/init.d/udev will be used
config ROOTFS_ETC_INITD_UDEV_USER
depends on ROOTFS_ETC_INITD && ROOTFS_ETC_INITD_UDEV
bool
prompt "Use your own udevd file"
help
Select this, then you can enter a path and filename to your
own udev startup script
endchoice
config ROOTFS_ETC_INITD_UDEV_USER_FILE
depends on ROOTFS_ETC_INITD && ROOTFS_ETC_INITD_UDEV
depends on ROOTFS_ETC_INITD_UDEV_USER
prompt "Path and name of your own udev to be used"
string
default ""
help
Enter a path and filename to be used as udev script on your target
config ROOTFS_ETC_INITD_UDEV_LINK
depends on ROOTFS_ETC_INITD && ROOTFS_ETC_INITD_UDEV
depends on UDEV
string
prompt "link name in /etc/rc.d"
default "S00_udev"
help
Set a link to with this name in /etc/rc.d which points to
/etc/init.d/udev.
########################## pureftpd ##########################################
comment "pureftpd: select pureftpd"
depends on ROOTFS_ETC_INITD && !PUREFTPD
menuconfig ROOTFS_ETC_INITD_PUREFTPD
depends on ROOTFS_ETC_INITD && PUREFTPD
bool
default y
prompt "purefptd "
help
The /etc/init.d/pure-ftpd script lets you control the pure ftp daemon.
choice
prompt "Kind of startup scrict"
depends on ROOTFS_ETC_INITD_PUREFTPD
default ROOTFS_ETC_INITD_PUREFTPD_DEFAULT
config ROOTFS_ETC_INITD_PUREFTPD_DEFAULT
bool
prompt "Use default pure-ftpd"
help
A file from projects/generic/etc/init.d/pure-ftpd will be used.
config ROOTFS_ETC_INITD_PUREFTPD_USER
bool
prompt "Use your own pure-ftpd file"
help
Select this, then you can enter a path and filename to your
own pure-ftpd startup script.
endchoice
config ROOTFS_ETC_INITD_PUREFTPD_USER_FILE
depends on ROOTFS_ETC_INITD_PUREFTPD
depends on ROOTFS_ETC_INITD_PUREFTPD_USER
prompt "Path and name of your own pure-ftpd to be used"
string
default ""
help
Enter a path and filename to be used as pure-ftpd script on your target.
config ROOTFS_ETC_INITD_PUREFTPD_LINK
depends on ROOTFS_ETC_INITD_PUREFTPD
string
prompt "link name in /etc/rc.d"
default "S09_pureftpd"
help
Set a link into /etc/rc.d which points to /etc/init.d/pure-ftpd to
start pure ftp daemon when system starts.
########################## thin httpd ##########################################
comment "thin httpd: select thttpd"
depends on ROOTFS_ETC_INITD && !THTTPD
menuconfig ROOTFS_ETC_INITD_THTTPD
depends on ROOTFS_ETC_INITD && THTTPD
bool
default y
prompt "thin httpd (thttpd) "
help
The /etc/init.d/thttpd script lets you control the thin http daemon.
choice
prompt "Kind of startup scrict"
depends on ROOTFS_ETC_INITD_THTTPD
default ROOTFS_ETC_INITD_THTTPD_DEFAULT
config ROOTFS_ETC_INITD_THTTPD_DEFAULT
bool
prompt "Use default thttpd script"
help
The file from projects/generic/etc/init.d/thttpd will be used.
config ROOTFS_ETC_INITD_THTTPD_USER
bool
prompt "Use your own thttpd script file"
help
Select this, then you can enter a path and filename to your
own thttpd startup script.
endchoice
config ROOTFS_ETC_INITD_THTTPD_USER_FILE
depends on ROOTFS_ETC_INITD_THTTPD
depends on ROOTFS_ETC_INITD_THTTPD_USER
prompt "Path and name of your own thttpd script to be used"
string
default ""
help
Enter a path and filename to be used as thttpd script on your target.
config ROOTFS_ETC_INITD_THTTPD_LINK
depends on ROOTFS_ETC_INITD_THTTPD
string
prompt "link name in /etc/rc.d"
default "S10_thttpd"
help
Set a link into /etc/rc.d which points to /etc/init.d/thttpd to
start thin http daemon when system starts.
########################## ? ##########################################
|