Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
346e3c21
Commit
346e3c21
authored
Aug 27, 2020
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syslinux: Added the ability to define the default menu item
Example: @$(call set,SYSLINUX_DEFAULT,harddisk) @$(call xport,SYSLINUX_DEFAULT) See features.in/syslinux/cfg.in/*.cfg
parent
a6c36206
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
01-syslinux
features.in/syslinux/stage1/scripts.d/01-syslinux
+10
-0
No files found.
features.in/syslinux/stage1/scripts.d/01-syslinux
View file @
346e3c21
...
...
@@ -34,6 +34,16 @@ fi
grep
-hv
'^#'
.in/[0-9][0-9]
*
.cfg
>
"
$CFG
"
# there should be DEFAULT directive there (at least for alterator-netinst)
if
[
-n
"
$GLOBAL_SYSLINUX_DEFAULT
"
]
;
then
if
[
-n
"
$(
grep
-i
"^label
$GLOBAL_SYSLINUX_DEFAULT
"
"
$CFG
"
)
"
]
;
then
DEFAULT
=
"
$GLOBAL_SYSLINUX_DEFAULT
"
sed
-i
'/^default/d'
echo
"default
$DEFAULT
"
>>
"
$CFG
"
else
echo
"error:
$GLOBAL_SYSLINUX_DEFAULT
missing in
$CFG
"
>
&2
exit
1
fi
fi
if
!
grep
-i
'^default'
"
$CFG
"
;
then
DEFAULT
=
"
$(
grep
-i
'^label '
"
$CFG
"
|
head
-1
|
cut
-f2
-d
' '
)
"
if
[
-n
"
$DEFAULT
"
]
;
then
...
...
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