2024-11-03 15:17:34 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -- $(cat /proc/cmdline)
|
|
|
|
|
|
|
|
for opt; do
|
|
|
|
case "$opt" in
|
|
|
|
cryptroot=*)
|
|
|
|
KOPT_cryptroot=${opt#cryptroot=}
|
|
|
|
continue
|
|
|
|
;;
|
|
|
|
cryptdm=*)
|
|
|
|
KOPT_cryptdm=${opt#cryptdm=}
|
|
|
|
continue
|
|
|
|
;;
|
|
|
|
root=*)
|
|
|
|
KOPT_root=${opt#root=}
|
|
|
|
continue
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
while [ ! -b /dev/mapper/${KOPT_cryptdm} ]; do
|
|
|
|
/sbin/nlplug-findfs -c ${KOPT_cryptroot} -m ${KOPT_cryptdm} ${KOPT_debug_init:+-d} -p /sbin/mdev ${KOPT_root}
|
|
|
|
sleep 2
|
|
|
|
done
|
|
|
|
|
2024-11-03 17:39:03 +00:00
|
|
|
# Kill all struck nlplug-findfs jobs and dropbear
|
|
|
|
killall -9 nlplug-findfs
|
2024-11-03 15:17:34 +00:00
|
|
|
killall -9 dropbear
|