diff options
author | Ross Burton <ross@openedhand.com> | 2008-07-04 14:14:21 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2008-07-04 14:14:21 +0000 |
commit | 670fd324bffd5b6e47c2dcf5e58a7f46026be971 (patch) | |
tree | 5efd4e845b15057d210c918dbda5fdfa234640fb /meta/packages | |
parent | 56ff3a1efb3b17f628321bb9ade3b7fb3bf23f08 (diff) | |
download | poky-670fd324bffd5b6e47c2dcf5e58a7f46026be971.tar.gz |
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
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/networkmanager/files/NetworkManager (renamed from meta/packages/networkmanager/files/25NetworkManager) | 13 | ||||
-rw-r--r-- | meta/packages/networkmanager/networkmanager_svn.bb | 13 |
2 files changed, 20 insertions, 6 deletions
diff --git a/meta/packages/networkmanager/files/25NetworkManager b/meta/packages/networkmanager/files/NetworkManager index 676fde35c5..4522e0107b 100644 --- a/meta/packages/networkmanager/files/25NetworkManager +++ b/meta/packages/networkmanager/files/NetworkManager | |||
@@ -1,6 +1,17 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | 2 | # |
3 | # NetworkManager startup script | 3 | ### BEGIN INIT INFO |
4 | # Provides: NetworkManager | ||
5 | # Required-Start: $remote_fs dbus hal | ||
6 | # Required-Stop: $remote_fs dbus hal | ||
7 | # Should-Start: $syslog | ||
8 | # Should-Stop: $syslog | ||
9 | # Default-Start: 2 3 4 5 | ||
10 | # Default-Stop: 0 1 6 | ||
11 | # Short-Description: network connection manager | ||
12 | # Description: Daemon for automatically switching network | ||
13 | # connections to the best available connection. | ||
14 | ### END INIT INFO | ||
4 | 15 | ||
5 | . /etc/profile | 16 | . /etc/profile |
6 | 17 | ||
diff --git a/meta/packages/networkmanager/networkmanager_svn.bb b/meta/packages/networkmanager/networkmanager_svn.bb index d39220bf67..58a15aaa24 100644 --- a/meta/packages/networkmanager/networkmanager_svn.bb +++ b/meta/packages/networkmanager/networkmanager_svn.bb | |||
@@ -7,12 +7,12 @@ DEPENDS = "libnl dbus dbus-glib hal gconf-dbus wireless-tools ppp gnome-common" | |||
7 | RDEPENDS = "hal wpa-supplicant iproute2 dhcp-client" | 7 | RDEPENDS = "hal wpa-supplicant iproute2 dhcp-client" |
8 | 8 | ||
9 | PV = "0.7+svnr${SRCREV}" | 9 | PV = "0.7+svnr${SRCREV}" |
10 | PR = "r5" | 10 | PR = "r6" |
11 | 11 | ||
12 | SRC_URI="svn://svn.gnome.org/svn/NetworkManager/;module=trunk;proto=http \ | 12 | SRC_URI="svn://svn.gnome.org/svn/NetworkManager/;module=trunk;proto=http \ |
13 | file://no-restarts.diff;patch=1;pnum=0 \ | 13 | file://no-restarts.diff;patch=1;pnum=0 \ |
14 | file://makefile-fix.patch;patch=1 \ | 14 | file://makefile-fix.patch;patch=1 \ |
15 | file://25NetworkManager \ | 15 | file://NetworkManager \ |
16 | file://99_networkmanager" | 16 | file://99_networkmanager" |
17 | 17 | ||
18 | EXTRA_OECONF = " \ | 18 | EXTRA_OECONF = " \ |
@@ -22,13 +22,16 @@ EXTRA_OECONF = " \ | |||
22 | 22 | ||
23 | S = "${WORKDIR}/trunk" | 23 | S = "${WORKDIR}/trunk" |
24 | 24 | ||
25 | inherit autotools pkgconfig | 25 | inherit autotools pkgconfig update-rc.d |
26 | |||
27 | INITSCRIPT_NAME = "NetworkManager" | ||
28 | INITSCRIPT_PARAMS = "defaults 22" | ||
26 | 29 | ||
27 | do_install_append () { | 30 | do_install_append () { |
28 | install -d ${D}/etc/default/volatiles | 31 | install -d ${D}/etc/default/volatiles |
29 | install -m 0644 ${WORKDIR}/99_networkmanager ${D}/etc/default/volatiles | 32 | install -m 0644 ${WORKDIR}/99_networkmanager ${D}/etc/default/volatiles |
30 | install -d ${D}/etc/dbus-1/event.d | 33 | # This overwrites the provided init script |
31 | install -m 0755 ${WORKDIR}/25NetworkManager ${D}/etc/dbus-1/event.d | 34 | install -m 0755 ${WORKDIR}/NetworkManager ${D}/etc/init.d/ |
32 | } | 35 | } |
33 | 36 | ||
34 | do_stage () { | 37 | do_stage () { |