Mini Shell

Direktori : /proc/thread-self/root/usr/lib/dracut/modules.d/90dmsquash-live/
Upload File :
Current File : //proc/thread-self/root/usr/lib/dracut/modules.d/90dmsquash-live/dmsquash-live-genrules.sh

#!/bin/sh

case "$root" in
  live:/dev/*)
    {
        printf 'KERNEL=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root %s"\n' \
            "${root#live:/dev/}" "${root#live:}"
        printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root %s"\n' \
            "${root#live:/dev/}" "${root#live:}"
    } >> /etc/udev/rules.d/99-live-squash.rules
    wait_for_dev -n "${root#live:}"
  ;;
  live:*)
    if [ -f "${root#live:}" ]; then
        /sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root "${root#live:}"
    fi
  ;;
esac

Zerion Mini Shell 1.0