Skip to content

Commit

Permalink
disks: fix
Browse files Browse the repository at this point in the history
Signed-off-by: AuxXxilium <[email protected]>
  • Loading branch information
AuxXxilium committed Nov 21, 2023
1 parent b03441f commit 55f83f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions disks/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ function checkSynoboot() {

[ ! -b /dev/synoboot -a -d /sys/block/${BOOTDISK} ] &&
/bin/mknod /dev/synoboot b $(cat /sys/block/${BOOTDISK}/dev | sed 's/:/ /') >/dev/null 2>&1
# sataN, nvmeN
# sataN, nvmeXnN, mmcblkN
[ ! -b /dev/synoboot1 -a -d /sys/block/${BOOTDISK}/${BOOTDISK}p1 ] &&
/bin/mknod /dev/synoboot1 b $(cat /sys/block/${BOOTDISK}/${BOOTDISK}p1/dev | sed 's/:/ /') >/dev/null 2>&1
[ ! -b /dev/synoboot2 -a -d /sys/block/${BOOTDISK}/${BOOTDISK}p2 ] &&
/bin/mknod /dev/synoboot2 b $(cat /sys/block/${BOOTDISK}/${BOOTDISK}p2/dev | sed 's/:/ /') >/dev/null 2>&1
# sdN
# sdN, vdN
[ ! -b /dev/synoboot1 -a -d /sys/block/${BOOTDISK}/${BOOTDISK}1 ] &&
/bin/mknod /dev/synoboot1 b $(cat /sys/block/${BOOTDISK}/${BOOTDISK}1/dev | sed 's/:/ /') >/dev/null 2>&1
[ ! -b /dev/synoboot2 -a -d /sys/block/${BOOTDISK}/${BOOTDISK}2 ] &&
Expand Down Expand Up @@ -291,6 +291,8 @@ function dtModel() {
fi
done

checkSynoboot

# USB ports
COUNT=1
for I in $(getUsbPorts); do
Expand Down

0 comments on commit 55f83f3

Please sign in to comment.