mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
17 lines
498 B
Bash
17 lines
498 B
Bash
# vim: set ft=sh:
|
|
run_hook ()
|
|
{
|
|
/sbin/modprobe -q dm-mod >/dev/null 2>&1
|
|
/sbin/modprobe -q dm-mirror >/dev/null 2>&1
|
|
if [ -e "/sys/class/misc/device-mapper" ]; then
|
|
read dev_t < /sys/class/misc/device-mapper/dev
|
|
/bin/mknod "/dev/mapper/control" c $(/bin/replace "${dev_t}" ':')
|
|
|
|
msg ":: Activating dmraid arrays..."
|
|
if [ "${quiet}" = "y" ]; then
|
|
/sbin/dmraid -ay -Z >/dev/null
|
|
else
|
|
/sbin/dmraid -ay -Z
|
|
fi
|
|
fi
|
|
}
|