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
81aa5695
"vscode:/vscode.git/clone" did not exist on "c2b1680f18e7bd27dd3a0f9cedd77a2bf485ab12"
Commit
81aa5695
authored
Jun 20, 2021
by
longpanda
Browse files
optimization for boot openwrt
parent
d1679871
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
IMG/cpio/ventoy/loop/openwrt/ventoy-disk.sh
IMG/cpio/ventoy/loop/openwrt/ventoy-disk.sh
+2
-2
No files found.
IMG/cpio/ventoy/loop/openwrt/ventoy-disk.sh
View file @
81aa5695
...
@@ -27,9 +27,9 @@ vtlog "####### $0 $* ########"
...
@@ -27,9 +27,9 @@ vtlog "####### $0 $* ########"
VTPATH_OLD
=
$PATH
;
PATH
=
$BUSYBOX_PATH
:
$VTOY_PATH
/tool:
$PATH
VTPATH_OLD
=
$PATH
;
PATH
=
$BUSYBOX_PATH
:
$VTOY_PATH
/tool:
$PATH
for
i
in
$(
ls
/sys/block/
)
;
do
for
i
in
$(
ls
/sys/
class/
block/
)
;
do
if
!
[
-e
/dev/
$i
]
;
then
if
!
[
-e
/dev/
$i
]
;
then
blkdev_num
=
$(
sed
's/:/ /g'
/sys/block/
$i
/dev
)
blkdev_num
=
$(
sed
's/:/ /g'
/sys/
class/
block/
$i
/dev
)
vtlog
"mknod -m 0666 /dev/
$i
b
$blkdev_num
"
vtlog
"mknod -m 0666 /dev/
$i
b
$blkdev_num
"
mknod
-m
0666 /dev/
$i
b
$blkdev_num
mknod
-m
0666 /dev/
$i
b
$blkdev_num
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