diff options
Diffstat (limited to 'files/90mgalive/mgalive-genrules.sh')
-rwxr-xr-x | files/90mgalive/mgalive-genrules.sh | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/files/90mgalive/mgalive-genrules.sh b/files/90mgalive/mgalive-genrules.sh index afbddd3..f450ebf 100755 --- a/files/90mgalive/mgalive-genrules.sh +++ b/files/90mgalive/mgalive-genrules.sh @@ -1,19 +1,18 @@ #!/bin/sh -# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- -# ex: ts=8 sw=4 sts=4 et filetype=sh + case "$root" in - live:/dev/*) + mgalive:/dev/*) { printf 'KERNEL=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/mgalive-root $env{DEVNAME}"\n' \ - ${root#live:/dev/} + ${root#mgalive:/dev/} printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/mgalive-root $env{DEVNAME}"\n' \ - ${root#live:/dev/} + ${root#mgalive:/dev/} } >> /etc/udev/rules.d/99-mgalive.rules - wait_for_dev "${root#live:}" + wait_for_dev "${root#mgalive:}" ;; - live:*) - if [ -f "${root#live:}" ]; then - /sbin/initqueue --settled --onetime --unique /sbin/mgalive-root "${root#live:}" + mgalive:*) + if [ -f "${root#mgalive:}" ]; then + /sbin/initqueue --settled --onetime --unique /sbin/mgalive-root "${root#mgalive:}" fi ;; esac |