You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627
  1. # Common functions for fll-live-initscripts
  2. fll_get_mnt() {
  3. local FLL
  4. local DEVS
  5. if grep -s -q -w fromiso /proc/cmdline; then
  6. echo /fll/fromiso
  7. else
  8. FLL="$(readlink -f /dev/fll)"
  9. for ln in $(udevadm info --query=symlink --name=${FLL}); do
  10. DEVS="${DEVS} /dev/${ln}"
  11. done
  12. for dev in ${FLL} ${DEVS}; do
  13. #mount | awk -v fll="${dev}" '$1 == fll { print $3 }'
  14. awk -v fll="${dev}" '$1 == fll { print $2 }' /proc/mounts
  15. done
  16. fi
  17. }
  18. fll_redirect() {
  19. exec >/tmp/${NAME}.log 2>&1
  20. set -x
  21. }