Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
b9ef72fb
Commit
b9ef72fb
authored
Sep 03, 2020
by
longpanda
Browse files
Fix issue #456
parent
390507ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
IMG/cpio/ventoy/hook/debian/ventoy_env2debconf.sh
IMG/cpio/ventoy/hook/debian/ventoy_env2debconf.sh
+33
-0
No files found.
IMG/cpio/ventoy/hook/debian/ventoy_env2debconf.sh
0 → 100644
View file @
b9ef72fb
#!/bin/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
PATH
=
$PATH
:/ventoy/busybox
set
>
/ventoy/tmpenvset
for
i
in
$(
cat
/proc/cmdline
)
;
do
if
echo
$i
|
grep
-q
"="
;
then
vtKey
=
${
i
%=*
}
if
!
grep
-q
"^
$vtKey
"
/ventoy/tmpenvset
;
then
echo
$i
>>
/ventoy/envset
fi
fi
done
cat
/ventoy/tmpenvset
>>
/ventoy/envset
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