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
89a34bac
Commit
89a34bac
authored
Sep 25, 2021
by
longpanda
Browse files
optimization for deepin/uos latest release
parent
8cecdae8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
IMG/cpio/ventoy/ventoy_chain.sh
IMG/cpio/ventoy/ventoy_chain.sh
+7
-3
IMG/cpio/ventoy/ventoy_loop.sh
IMG/cpio/ventoy/ventoy_loop.sh
+6
-2
No files found.
IMG/cpio/ventoy/ventoy_chain.sh
View file @
89a34bac
...
...
@@ -88,8 +88,8 @@ ventoy_get_os_type() {
# Deepin : do the same process with debian
elif
$GREP
-q
'[Dd]eepin'
/proc/version
;
then
echo
'debian'
;
return
echo
'debian'
;
return
# SUSE
elif
$GREP
-q
'SUSE'
/proc/version
;
then
echo
'suse'
;
return
...
...
@@ -160,7 +160,11 @@ ventoy_get_os_type() {
elif
$GREP
-q
'openEuler'
/etc/os-release
;
then
echo
'openEuler'
;
return
elif
$GREP
-q
'fuyu'
/etc/os-release
;
then
echo
'openEuler'
;
return
echo
'openEuler'
;
return
elif
$GREP
-q
'deepin'
/etc/os-release
;
then
echo
'debian'
;
return
elif
$GREP
-q
'chinauos'
/etc/os-release
;
then
echo
'debian'
;
return
fi
fi
...
...
IMG/cpio/ventoy/ventoy_loop.sh
View file @
89a34bac
...
...
@@ -127,8 +127,8 @@ ventoy_get_os_type() {
# Deepin : do the same process with debian
elif
$GREP
-q
'[Dd]eepin'
/proc/version
;
then
echo
'debian'
;
return
echo
'debian'
;
return
# SUSE
elif
$GREP
-q
'SUSE'
/proc/version
;
then
echo
'suse'
;
return
...
...
@@ -200,6 +200,10 @@ ventoy_get_os_type() {
echo
'openEuler'
;
return
elif
$GREP
-q
'fuyu'
/etc/os-release
;
then
echo
'openEuler'
;
return
elif
$GREP
-q
'deepin'
/etc/os-release
;
then
echo
'debian'
;
return
elif
$GREP
-q
'chinauos'
/etc/os-release
;
then
echo
'debian'
;
return
fi
fi
...
...
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