3
0
Fork 0
forked from mirrors/nixpkgs

luks root: c-style for-loop -> seq

The ash shell no longer supports this bash-specific syntax.
This left systems that use luksroot unable to boot.
This commit is contained in:
Mathijs Kwik 2012-06-24 10:06:28 +02:00 committed by Shea Levy
parent e64bdda52b
commit 061a998840

View file

@ -11,7 +11,7 @@ let
# available as a function.
if ! test -e ${device}; then
echo -n "waiting 10 seconds for device ${device} to appear..."
for ((try = 0; try < 10; try++)); do
for try in $(seq 0 9); do
sleep 1
if test -e ${device}; then break; fi
echo -n .