fix_expr: remove usage of expr in ide-devfs.sh, because it may be in
/usr/bin and not available at early boot time.
TARGET="${2#[0-9]\.}"
if [ -z "${HOST#[13579]}" ]; then
TARGET="${2#[0-9]\.}"
if [ -z "${HOST#[13579]}" ]; then
- HOST=`expr ${HOST} - 1`
if [ -e "${x}" ]; then
MEDIA=`cat ${x}`
if [ "${MEDIA}" = "$2" ]; then
if [ -e "${x}" ]; then
MEDIA=`cat ${x}`
if [ "${MEDIA}" = "$2" ]; then
fi
if [ "${x}" = "/proc/ide/${DRIVE}/media" ]; then
break
fi
if [ "${x}" = "/proc/ide/${DRIVE}/media" ]; then
break