This hasn't been used in a long time
Signed-off-by: Felix Fietkau <nbd@nbd.name>
if read cmdline < /proc/cmdline; then
case "$cmdline" in
- *block2mtd=*)
- bootdisk="${cmdline##*block2mtd=}"
- bootdisk="${bootdisk%%,*}"
- ;;
*root=*)
rootpart="${cmdline##*root=}"
rootpart="${rootpart%% *}"
if read cmdline < /proc/cmdline; then
case "$cmdline" in
- *block2mtd=*)
- rootfsdev="${cmdline##*block2mtd=}"
- rootfsdev="${rootfsdev%%,*}"
- ;;
*root=*)
rootfsdev="${cmdline##*root=}"
rootfsdev="${rootfsdev%% *}"