Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
fcf2740e
Commit
fcf2740e
authored
Oct 17, 2012
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
barebox: add new "hidden" variable to ease booting for development
parent
14ada671
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
init
patches/barebox/env/bin/init
+9
-3
No files found.
patches/barebox/env/bin/init
View file @
fcf2740e
...
...
@@ -13,7 +13,10 @@ if [ $? -eq 0 ]; then
bootm /dev/ram0.kernel
fi
autoboot_timeout
=
"10"
;
#default value (can changed in /env/config)
preboot_timeout
=
"5"
autoboot_timeout
=
"10"
autoboot_select
=
"1"
### Override default value using /env/config
.
/env/config
...
...
@@ -57,6 +60,9 @@ menu -e -a -m boot -c 'exit 0' -d "exit to shell"
menu
-e
-a
-m
boot
-c
reset
-d
"reboot"
# allow the user to see previous messages
echo
"starting menu in 5 seconds"
sleep
5
echo
"starting menu in
${
preboot_timeout
}
seconds"
sleep
${
preboot_timeout
}
# Select by default a specific menu
menu
-m
boot
-S
-n
$autoboot_select
#Use a timeout to let the user change the entry in menu
menu
-s
boot
$menu_timeout
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment