[oe] [PATCH 11/12] Modify util-linux-ng
Martyn Welch
martyn.welch at ge.com
Mon Mar 22 09:35:50 UTC 2010
Add link to reset command and correct swapoff.
---
recipes/util-linux-ng/util-linux-ng.inc | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/recipes/util-linux-ng/util-linux-ng.inc b/recipes/util-linux-ng/util-linux-ng.inc
index b2045d7..6ed2ac4 100644
--- a/recipes/util-linux-ng/util-linux-ng.inc
+++ b/recipes/util-linux-ng/util-linux-ng.inc
@@ -160,6 +160,7 @@ do_install () {
install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/hwclock.sh ${D}${sysconfdir}/init.d/
+ mv ${S}/misc-utils/reset ${D}${bindir}/reset.${PN}
install -d ${D}${sysconfdir}/default/
echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall.${PN}
@@ -204,7 +205,8 @@ pkg_postinst_${PN} () {
update-alternatives --install ${base_bindir}/login login login.${PN} 100
update-alternatives --install ${base_sbindir}/vipw vipw vipw.${PN} 100
update-alternatives --install ${base_sbindir}/vigr vigr vigr.${PN} 100
-
+ update-alternatives --install ${bindir}/reset reset reset.${PN} 100
+
# There seems to be problem, atleast on nslu2, with these, until they are
# fixed the busybox ones have higher priority
update-alternatives --install ${base_sbindir}/hwclock hwclock hwclock.${PN} 10
@@ -217,7 +219,7 @@ pkg_prerm_${PN} () {
test -x ${base_sbindir}/pivot_root.${PN} && \
update-alternatives --remove pivot_root pivot_root.${PN}
- for i in dmesg kill more halt hwclock mkswap reboot shutdown sln mkfs.minix fsck.minix hecdump last logger mesg renice wall vipw vigr chfn newgrp chsh login ; do
+ for i in dmesg kill more halt hwclock mkswap reboot shutdown sln mkfs.minix fsck.minix hecdump last logger mesg renice wall vipw vigr chfn newgrp chsh login reset ; do
update-alternatives --remove $i $i.${PN}
done
}
@@ -255,12 +257,12 @@ pkg_prerm_util-linux-ng-losetup () {
}
pkg_postinst_util-linux-ng-swaponoff () {
- update-alternatives --install ${base_sbindir}/swapoff swapoff swapoff.${PN} 100
+ update-alternatives --install ${base_sbindir}/swapoff swapoff swapon.${PN} 100
update-alternatives --install ${base_sbindir}/swapon swapon swapon.${PN} 100
}
pkg_prerm_util-linux-ng-swaponoff () {
- update-alternatives --remove swapoff swapoff.${PN}
+ update-alternatives --remove swapoff swapon.${PN}
update-alternatives --remove swapon swapon.${PN}
}
--
Martyn Welch (Principal Software Engineer) | Registered in England and
GE Intelligent Platforms | Wales (3828642) at 100
T +44(0)127322748 | Barbirolli Square, Manchester,
E martyn.welch at ge.com | M2 3AB VAT:GB 927559189
More information about the Openembedded-devel
mailing list