File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ ventoy_get_os_type() {
5252 fi
5353 fi
5454
55+ # Parted Magic
56+ if [ -d /pmagic ]; then
57+ echo ' pmagic' ; return
58+ fi
59+
5560 # PrimeOS :
5661 if $GREP -q ' PrimeOS' /proc/version; then
5762 echo ' primeos' ; return
@@ -237,10 +242,6 @@ ventoy_get_os_type() {
237242 echo ' adelie' ; return
238243 fi
239244
240- if $GREP -q ' pmagic' /proc/version; then
241- echo ' pmagic' ; return
242- fi
243-
244245 if $GREP -q ' CDlinux' /proc/cmdline; then
245246 echo ' cdlinux' ; return
246247 fi
Original file line number Diff line number Diff line change @@ -101,6 +101,11 @@ ventoy_get_os_type() {
101101 fi
102102 fi
103103
104+ # Parted Magic
105+ if [ -d /pmagic ]; then
106+ echo ' pmagic' ; return
107+ fi
108+
104109 # rhel5/CentOS5 and all other distributions based on them
105110 if $GREP -q ' el5' /proc/version; then
106111 echo ' rhel5' ; return
@@ -269,10 +274,6 @@ ventoy_get_os_type() {
269274 echo ' adelie' ; return
270275 fi
271276
272- if $GREP -q ' pmagic' /proc/version; then
273- echo ' pmagic' ; return
274- fi
275-
276277 if $GREP -q ' CDlinux' /proc/cmdline; then
277278 echo ' cdlinux' ; return
278279 fi
You can’t perform that action at this time.
0 commit comments