Open MakiseKurisu opened 5 years ago
When running this script under busybox's sh/ash, prefix removel works from the beginning of the variable:
# ROOT_PART=$(readlink /dev/root);PART_NUM=${ROOT_PART#mmcblk0p};echo $PART_NUM /dev/mmcblk0p2 # ROOT_PART=$(readlink /dev/root);PART_NUM=${ROOT_PART#/dev/mmcblk0p};echo $PART_NUM 2
When running this script under busybox's sh/ash, prefix removel works from the beginning of the variable: