diff options
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux.inc | 18 | ||||
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.17.2.bb | 2 |
2 files changed, 14 insertions, 6 deletions
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 931a627b56..42881093fd 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
| @@ -149,11 +149,19 @@ do_install () { | |||
| 149 | install -d ${D}${sysconfdir}/default/ | 149 | install -d ${D}${sysconfdir}/default/ |
| 150 | echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall | 150 | echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall |
| 151 | 151 | ||
| 152 | ln -sf ${sbindir}/swapon ${D}${sbindir}/swapoff.${PN} | 152 | # note ${PN} in swapon.${PN}, swapon is an alternative link that is |
| 153 | ln -sf ${sbindir}/shutdown ${D}${sbindir}/reboot.${PN} | 153 | # not guaranteed to provide multiple functions, similar for shutdown |
| 154 | ln -sf ${sbindir}/shutdown ${D}${sbindir}/halt.${PN} | 154 | ln -sf swapon.${PN} ${D}${base_sbindir}/swapoff.${PN} |
| 155 | ln -sf ${sbindir}/shutdown ${D}${sbindir}/fastboot | 155 | ln -sf shutdown.${PN} ${D}${base_sbindir}/reboot.${PN} |
| 156 | ln -sf ${sbindir}/shutdown ${D}${sbindir}/fasthalt | 156 | ln -sf shutdown.${PN} ${D}${base_sbindir}/halt.${PN} |
| 157 | ln -sf shutdown.${PN} ${D}${base_sbindir}/fastboot | ||
| 158 | ln -sf shutdown.${PN} ${D}${base_sbindir}/fasthalt | ||
| 159 | |||
| 160 | rm -f ${D}${sbindir}/halt | ||
| 161 | rm -f ${D}${sbindir}/reboot | ||
| 162 | rm -f ${D}${sbindir}/fastboot | ||
| 163 | rm -f ${D}${sbindir}/fasthalt | ||
| 164 | rm -f ${D}${sbindir}/swapoff | ||
| 157 | } | 165 | } |
| 158 | 166 | ||
| 159 | pkg_postinst_${PN} () { | 167 | pkg_postinst_${PN} () { |
diff --git a/meta/recipes-core/util-linux/util-linux_2.17.2.bb b/meta/recipes-core/util-linux/util-linux_2.17.2.bb index 662bde0dfc..d0b1b41ed4 100644 --- a/meta/recipes-core/util-linux/util-linux_2.17.2.bb +++ b/meta/recipes-core/util-linux/util-linux_2.17.2.bb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | MAJOR_VERSION = "2.17" | 1 | MAJOR_VERSION = "2.17" |
| 2 | require util-linux.inc | 2 | require util-linux.inc |
| 3 | PR = "r2" | 3 | PR = "r3" |
| 4 | 4 | ||
| 5 | SRC_URI += "file://uclibc-compile.patch \ | 5 | SRC_URI += "file://uclibc-compile.patch \ |
| 6 | file://util-linux-ng-replace-siginterrupt.patch" | 6 | file://util-linux-ng-replace-siginterrupt.patch" |
