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