1 # Copyright (C) 2006-2012 OpenWrt.org
2 # Copyright (C) 2010 Vertical Communications
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 bool "Preinit configuration options" if IMAGEOPT
12 These options are used to control the environment used to initialize
13 the system before running init (which typically mean /sbin/init which
14 switches to multiuser mode).
16 config TARGET_PREINIT_SUPPRESS_STDERR
17 bool "Suppress stderr messages during preinit" if PREINITOPT
20 Sends stderr to null during preinit. This is the default behaviour
21 in previous versions of OpenWRT. This also prevents init process
22 itself from displaying stderr, however processes launched by init
23 in multiuser through inittab will use the current terminal (e.g.
24 the ash shell launched by inittab will display stderr). That's
25 the same behaviour as seen in previous version of OpenWRT.
27 config TARGET_PREINIT_TIMEOUT
29 prompt "Failsafe wait timeout" if PREINITOPT
32 How long to wait for failsafe mode to be entered before
33 continuing with a regular boot if failsafe not selected.
35 config TARGET_PREINIT_SHOW_NETMSG
37 prompt "Show all preinit network messages" if PREINITOPT
40 Show preinit all network messages (via netmsg broadcast), not only
41 the message indicating to press reset to enter failsafe. Note that
42 if the architecture doesn't define an interface, and there is no
43 'Preinit network interface' defined, then no messages will be
44 emitted, even if this is set.
46 config TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG
48 prompt "Suppress network message indicating failsafe" if PREINITOPT
51 If "Show all preinit network messages" above is not set, then
52 setting this option suppresses the only message that would be
53 emitted otherwise, name the network message to enter failsafe
56 config TARGET_PREINIT_IFNAME
58 prompt "Preinit network interface" if PREINITOPT
61 Interface for sending preinit messages to network, and any other
62 default networking in failsafe or preinit. If empty
63 uses $ifname (if defined in /etc/preinit.arch).
65 config TARGET_PREINIT_IP
67 prompt "IP address for preinit network messages" if PREINITOPT
70 IP address used to configure interface for preinit network
71 messages, including failsafe messages
73 config TARGET_PREINIT_NETMASK
75 prompt "Netmask for preinit network messages" if PREINITOPT
76 default "255.255.255.0"
78 Netmask used to configure interface for preinit network
79 messages, including failsafes messages
81 config TARGET_PREINIT_BROADCAST
83 prompt "Broadcast address for preinit network messages" if PREINITOPT
84 default "192.168.1.255"
86 Broadcast address to which to send preinit network messages, as
91 bool "Init configuration options" if IMAGEOPT
94 These option choose the command that will run as the 'init' command
95 (that is which is responsible for controlling the system once preinit
96 transfers control to it) as well as some options controlling its
97 behaviour. Normally init is /sbin/init.
99 config TARGET_INIT_PATH
101 prompt "PATH for regular boot" if INITOPT
102 default "/bin:/sbin:/usr/bin:/usr/sbin"
104 Default PATH used during normal operation
106 config TARGET_INIT_ENV
108 prompt "Environment variables to set when starting init (start with none)" if INITOPT
111 Should be a space seperated list of variable assignments. These
112 variables will be present in the environment. Spaces may not be
113 present (including through expansion) even in a quoted string
114 (env doesn't understanding quoting).
116 config TARGET_INIT_CMD
118 prompt "Init command" if INITOPT
121 The executable to run as the init process. Is 'exec'd by
122 preinit (which is the init that the kernel launches on boot).
124 config TARGET_INIT_SUPPRESS_STDERR
126 prompt "Suppress stderr messages of init" if INITOPT
129 Prevents showing stderr messages for init command if not already
130 suppressed during preinit. This is the default behaviour in
131 previous versions of OpenWRT. Removing this does nothing if
132 stderr is suppressed during preinit (which is the default).
135 menuconfig VERSIONOPT
136 bool "Version configuration options" if IMAGEOPT
139 These options allow to override the version information embedded in
140 the /etc/openwrt_version, /etc/openwrt_release, /etc/banner and
141 /etc/opkg.conf files. Usually there is no need to set these, but
142 they're useful for release builds or custom OpenWrt redistributions
143 that should carry custom version tags.
147 prompt "Release distribution" if VERSIONOPT
148 default "OpenWrt" if VERSIONOPT
150 This is the name of the release distribution.
151 If unspecified, it defaults to OpenWrt.
155 prompt "Release version nickname" if VERSIONOPT
157 This is the release codename embedded in the image.
158 If unspecified, it defaults to the name of source branch.
160 config VERSION_NUMBER
162 prompt "Release version number" if VERSIONOPT
164 This is the release version number embedded in the image.
165 If unspecified, it defaults to the svn or git-svn revision
170 prompt "Release repository" if VERSIONOPT
171 default "http://downloads.openwrt.org/snapshots/trunk/%T/packages" if VERSIONOPT
173 This is the repository address embedded in the image, it defaults
174 to the trunk snapshot repo; the url may contain the following placeholders:
175 %R .. Revision number
176 %V .. Release version or revision number, uppercase
177 %v .. Release version or revision number, lowercase
178 %C .. Release version or "Bleeding Edge", uppercase
179 %c .. Release version or "bleeding_edge", lowercase
180 %N .. Release name, uppercase
181 %n .. Release name, lowercase
182 %D .. Distribution name or "OpenWrt", uppercase
183 %d .. Distribution name or "openwrt", lowercase
185 %S .. Target/Subtarget name