2009-01-25 03:17:54 +01:00
|
|
|
# vim: set ft=sh:
|
|
|
|
run_hook ()
|
|
|
|
{
|
2009-07-26 10:57:46 +02:00
|
|
|
if [ -n "${archisolabel}" ]; then
|
2010-02-04 22:48:55 +01:00
|
|
|
echo "ACTION==\"add|change\", SUBSYSTEM==\"block\", IMPORT{program}=\"/sbin/blkid -o udev \$tempnode\"" > /lib/udev/rules.d/00-archiso-device.rules
|
2009-07-26 10:57:46 +02:00
|
|
|
echo "ENV{ID_FS_LABEL_ENC}==\"${archisolabel}\", SYMLINK+=\"archiso\"" >> /lib/udev/rules.d/00-archiso-device.rules
|
|
|
|
fi
|
2009-01-25 03:17:54 +01:00
|
|
|
}
|