summaryrefslogtreecommitdiffstats
path: root/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-22 17:38:13 +0100
committerSimon Rettberg2019-02-22 17:38:13 +0100
commitad4e18912cc753c6af903e002ba36900f2341d25 (patch)
tree7cec88a326fe3469ba224d9288ca84e8bc3580bf /core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions
parent[xorg] Include legacy ati drivers (if installed only) (diff)
downloadmltk-ad4e18912cc753c6af903e002ba36900f2341d25.tar.gz
mltk-ad4e18912cc753c6af903e002ba36900f2341d25.tar.xz
mltk-ad4e18912cc753c6af903e002ba36900f2341d25.zip
[rootfs-stage32] Fix bug when using --hdd
Diffstat (limited to 'core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions')
-rwxr-xr-xcore/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions
index 5f58917d..95709bbf 100755
--- a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions
+++ b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions
@@ -128,7 +128,10 @@ mount_temp_fallback () {
wait_for_udev () {
local upid ctr hdd
hdd=
- [ "x$1" = "x--hdd" ] && hdd=true
+ if [ "x$1" = "x--hdd" ]; then
+ hdd=true
+ shift
+ fi
ctr=$(( "$1" * 10 ))
if ! [ "$ctr" -gt 0 ]; then # Negation to catch NaN
ctr=1