blob: 465e105a36d8cb36068f0f6ae38c6bf2999fb9f1 (
plain)
1
2
3
4
5
6
7
8
|
# vim: set ft=sh:
run_hook ()
{
if [ -n "${archisolabel}" ]; then
echo "ACTION==\"add|change\", SUBSYSTEM==\"block\", IMPORT{program}=\"/sbin/blkid -o udev -p \$tempnode\"" > /lib/udev/rules.d/00-archiso-device.rules
echo "ENV{ID_FS_LABEL_ENC}==\"${archisolabel}\", SYMLINK+=\"archiso\"" >> /lib/udev/rules.d/00-archiso-device.rules
fi
}
|