[oe-commits] org.oe.dev sysvinit: prepend shebang to shell scripts and fix formatting of those

koen commit oe at amethyst.openembedded.net
Wed Mar 19 10:17:52 UTC 2008


sysvinit: prepend shebang to shell scripts and fix formatting of those

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: ef4c5705cf003cb4e2e0477bc675fa693c14d6eb
ViewMTN: http://monotone.openembedded.org/revision/info/ef4c5705cf003cb4e2e0477bc675fa693c14d6eb
Files:
1
packages/sysvinit/sysvinit_2.86.bb
Diffs:

#
# mt diff -r797469a47d5b8bef4ebd8d609d3231c258efd462 -ref4c5705cf003cb4e2e0477bc675fa693c14d6eb
#
#
#
# patch "packages/sysvinit/sysvinit_2.86.bb"
#  from [a7c179142fda9dde604829bac075af3e5e172fc6]
#    to [3c3ed36bd504b7549d6134987b11eedb817c99e8]
#
============================================================
--- packages/sysvinit/sysvinit_2.86.bb	a7c179142fda9dde604829bac075af3e5e172fc6
+++ packages/sysvinit/sysvinit_2.86.bb	3c3ed36bd504b7549d6134987b11eedb817c99e8
@@ -2,7 +2,7 @@ HOMEPAGE = "http://freshmeat.net/project
 SECTION = "base"
 LICENSE = "GPL"
 HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
-PR = "r36"
+PR = "r38"
 
 # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
 # Set PACKAGE_ARCH appropriately.
@@ -104,27 +104,31 @@ pkg_postinst_${PN} () {
 }
 
 pkg_postinst_${PN} () {
-	update-alternatives --install ${base_sbindir}/halt halt halt.${PN} 200
-	update-alternatives --install ${base_sbindir}/reboot reboot reboot.${PN} 200
-	update-alternatives --install ${base_sbindir}/shutdown shutdown shutdown.${PN} 200
-	update-alternatives --install ${bindir}/last last last.${PN} 200
-	update-alternatives --install ${bindir}/mesg mesg mesg.${PN} 200
-	update-alternatives --install ${bindir}/wall wall wall.${PN} 200
+#/bin/sh
+update-alternatives --install ${base_sbindir}/halt halt halt.${PN} 200
+update-alternatives --install ${base_sbindir}/reboot reboot reboot.${PN} 200
+update-alternatives --install ${base_sbindir}/shutdown shutdown shutdown.${PN} 200
+update-alternatives --install ${bindir}/last last last.${PN} 200
+update-alternatives --install ${bindir}/mesg mesg mesg.${PN} 200
+update-alternatives --install ${bindir}/wall wall wall.${PN} 200
 }
 
 pkg_prerm_${PN} () {
-	update-alternatives --remove halt halt.${PN}
-	update-alternatives --remove reboot reboot.${PN}
-	update-alternatives --remove shutdown shutdown.${PN}
-	update-alternatives --remove last last.${PN}
-	update-alternatives --remove mesg mesg.${PN}
-	update-alternatives --remove wall wall.${PN}
+#!/bin/sh
+update-alternatives --remove halt halt.${PN}
+update-alternatives --remove reboot reboot.${PN}
+update-alternatives --remove shutdown shutdown.${PN}
+update-alternatives --remove last last.${PN}
+update-alternatives --remove mesg mesg.${PN}
+update-alternatives --remove wall wall.${PN}
 }
 
 pkg_postinst_sysvinit-pidof () {
-	update-alternatives --install ${base_bindir}/pidof pidof pidof.${PN} 200
+#!/bin/sh
+update-alternatives --install ${base_bindir}/pidof pidof pidof.${PN} 200
 }
 
 pkg_prerm_sysvinit-pidof () {
-	update-alternatives --remove pidof pidof.${PN}
+#!/bin/sh
+update-alternatives --remove pidof pidof.${PN}
 }






More information about the Openembedded-commits mailing list