then
strip udevstart || gen_die 'Failed to strip the udevstart binary!'
fi
+
+ if [ -e udevsend ]
+ then
+ strip udevsend || gen_die 'Failed to strip the udevsend binary!'
+ fi
print_info 1 ' >> Installing...'
install -d "${TEMP}/udev/etc/udev" "${TEMP}/udev/sbin" "${TEMP}/udev/etc/udev/scripts" "${TEMP}/udev/etc/udev/rules.d" "${TEMP}/udev/etc/udev/permissions.d" ||
install -m 0755 udevstart "${TEMP}/udev/sbin" ||
gen_die 'Could not install udevstart binary!'
fi
+
+ if [ -e udevsend ]
+ then
+ install -m 0755 udevsend "${TEMP}/udev/sbin" ||
+ gen_die 'Could not install udevsend binary!'
+ fi
install -m 0644 etc/udev/udev.conf "${TEMP}/udev/etc/udev" ||
gen_die 'Could not install udev configuration!'
if [ "${UDEV}" -eq '1' ]
then
/bin/tar -jxpf "${UDEV_BINCACHE}" -C "${TEMP}/initrd-temp" || gen_die 'Could not extract udev binary cache!'
- ln -sf "./udev" "${TEMP}/initrd-temp/bin/udevstart" || gen_die 'Could not symlink udev -> udevstart!'
+ if [ ! -e "${TEMP}/initrd-temp/bin/udevstart" ]
+ then
+ ln -sf "./udev" "${TEMP}/initrd-temp/bin/udevstart" || gen_die 'Could not symlink udev -> udevstart!'
+ fi
+
+ if [ ! -e "${TEMP}/initrd-temp/bin/udevsend" ]
+ then
+ ln -sf "./udev" "${TEMP}/initrd-temp/bin/udevsend" || gen_die 'Could not symlink udev -> udevsend!'
+ fi
+
fi
#unionfs modules
mount -t tmpfs -o size=100k udev /dev
mkdir /dev/pts
mkdir /dev/shm
+ echo /sbin/udevsend > /proc/sys/kernel/hotplug
/sbin/udevstart
ln -snf /proc/self/fd /dev/fd
ln -snf /proc/self/fd/0 /dev/stdin
then
ln -s /sbin/udev /sbin/udevstart
fi
+
+ if [ ! -e /sbin/udevsend ]
+ then
+ ln -s /sbin/udev /sbin/udevsend
+ fi
+
fi
if [ -e /bin/lvm ]