The following changes were made:
* Upgraded to more recent version of eudev * Added REPO * Removed --disable-static * Added udev.conf * usher now uses /bin/sh * Removed TARGET from usher * usher now checks for chroot and runs udevd restart if not in chroot * usher now executes mkinitramfs
This commit is contained in:
16
SNAP/usher
16
SNAP/usher
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
@@ -7,17 +7,17 @@ case $1 in
|
||||
exit 0
|
||||
;;
|
||||
postinst)
|
||||
if [ ! -f ${TARGET}/etc/udev/udev.conf ]; then
|
||||
install -m 644 ${TARGET}/usr/share/eudev/udev.conf \
|
||||
${TARGET}/etc/udev/udev.conf
|
||||
if [ ! -f /etc/udev/udev.conf ]; then
|
||||
install -m 644 /usr/share/eudev/udev.conf /etc/udev/udev.conf
|
||||
fi
|
||||
|
||||
if [[ ! ${TARGET} ]]; then
|
||||
if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i \
|
||||
/proc/1/root 2>/dev/null)" ]; then
|
||||
/etc/init.d/udevd restart
|
||||
update-rc enable udevd
|
||||
else
|
||||
chroot ${TARGET} update-rc enable udevd
|
||||
fi
|
||||
|
||||
update-rc enable udevd
|
||||
mkinitramfs all
|
||||
;;
|
||||
prerm)
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user