networkmanager: use a proper init script with depends

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4828 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Ross Burton 2008-07-04 14:14:21 +00:00
parent 56ff3a1efb
commit 670fd324bf
2 changed files with 20 additions and 6 deletions

View File

@ -1,6 +1,17 @@
#!/bin/sh
#
# NetworkManager startup script
### BEGIN INIT INFO
# Provides: NetworkManager
# Required-Start: $remote_fs dbus hal
# Required-Stop: $remote_fs dbus hal
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: network connection manager
# Description: Daemon for automatically switching network
# connections to the best available connection.
### END INIT INFO
. /etc/profile

View File

@ -7,12 +7,12 @@ DEPENDS = "libnl dbus dbus-glib hal gconf-dbus wireless-tools ppp gnome-common"
RDEPENDS = "hal wpa-supplicant iproute2 dhcp-client"
PV = "0.7+svnr${SRCREV}"
PR = "r5"
PR = "r6"
SRC_URI="svn://svn.gnome.org/svn/NetworkManager/;module=trunk;proto=http \
file://no-restarts.diff;patch=1;pnum=0 \
file://makefile-fix.patch;patch=1 \
file://25NetworkManager \
file://NetworkManager \
file://99_networkmanager"
EXTRA_OECONF = " \
@ -22,13 +22,16 @@ EXTRA_OECONF = " \
S = "${WORKDIR}/trunk"
inherit autotools pkgconfig
inherit autotools pkgconfig update-rc.d
INITSCRIPT_NAME = "NetworkManager"
INITSCRIPT_PARAMS = "defaults 22"
do_install_append () {
install -d ${D}/etc/default/volatiles
install -m 0644 ${WORKDIR}/99_networkmanager ${D}/etc/default/volatiles
install -d ${D}/etc/dbus-1/event.d
install -m 0755 ${WORKDIR}/25NetworkManager ${D}/etc/dbus-1/event.d
# This overwrites the provided init script
install -m 0755 ${WORKDIR}/NetworkManager ${D}/etc/init.d/
}
do_stage () {