3 LIVE_IMAGE_MOUNTPOINT
=/lib
/live
/mount
/medium
4 for arg
in $
(cat /proc
/cmdline
) ; do
7 kernel
="${arg#BOOT_IMAGE=}"
10 initrd
="${arg#initrd=}"
16 [ -n "$kernel" ] ||
exit 4
17 [ -n "$initrd" ] ||
exit 5
21 echo "${LIVE_IMAGE_MOUNTPOINT}${kernel}"
24 echo "${LIVE_IMAGE_MOUNTPOINT}${initrd}"
27 echo "Usage: $0 kernel|initrd" >&2