gnomeos: initscripts: Add NetworkManager and dbus, kill stupid arm stuff

This commit is contained in:
Colin Walters 2012-01-11 14:36:04 -05:00
parent ef2a16525e
commit 53d388a416
4 changed files with 68 additions and 19 deletions

View File

@ -0,0 +1,31 @@
#!/bin/sh
start()
{
echo -n $"Starting NetworkManager daemon: "
/usr/sbin/NetworkManager --pid-file=/var/run/NetworkManager.pid &
}
stop()
{
echo -n $"Stopping NetworkManager daemon: "
kill -TERM `cat /var/run/NetworkManager.pid`
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
;;
esac
exit $RETVAL

View File

@ -1,13 +0,0 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: alignment
# Required-Start: mountkernfs
# Required-Stop: mountkernfs
# Default-Start: S
# Default-Stop:
### END INIT INFO
if [ -e /proc/cpu/alignment ]; then
echo "3" > /proc/cpu/alignment
fi

View File

@ -0,0 +1,31 @@
#!/bin/sh
start()
{
echo -n "Starting dbus daemon: "
/usr/bin/dbus-daemon --system
}
stop()
{
echo -n "Stopping dbus not implemented "
exit 1
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
;;
esac
exit $RETVAL

View File

@ -16,6 +16,8 @@ SRC_URI = "file://functions \
file://finish.sh \
file://bootmisc.sh \
file://mountnfs.sh \
file://NetworkManager \
file://dbus \
file://reboot \
file://single \
file://sendsigs \
@ -58,6 +60,8 @@ do_install () {
install -m 0755 ${WORKDIR}/halt ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/hostname.sh ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/mountall.sh ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/NetworkManager ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/dbus ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/mountnfs.sh ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/reboot ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/rmnologin.sh ${D}${sysconfdir}/init.d
@ -66,9 +70,6 @@ do_install () {
install -m 0755 ${WORKDIR}/umountnfs.sh ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/urandom ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/save-rtc.sh ${D}${sysconfdir}/init.d
if [ "${TARGET_ARCH}" = "arm" ]; then
install -m 0755 ${WORKDIR}/alignment.sh ${D}${sysconfdir}/init.d
fi
#
# Install device dependent scripts
#
@ -98,14 +99,13 @@ do_install () {
ln -sf ../init.d/banner.sh ${D}${sysconfdir}/rcS.d/S02banner.sh
ln -sf ../init.d/mountall.sh ${D}${sysconfdir}/rcS.d/S35mountall.sh
ln -sf ../init.d/hostname.sh ${D}${sysconfdir}/rcS.d/S39hostname.sh
ln -sf ../init.d/dbus ${D}${sysconfdir}/rcS.d/S40dbus
ln -sf ../init.d/NetworkManager ${D}${sysconfdir}/rcS.d/S41NetworkManager
ln -sf ../init.d/mountnfs.sh ${D}${sysconfdir}/rcS.d/S45mountnfs.sh
ln -sf ../init.d/bootmisc.sh ${D}${sysconfdir}/rcS.d/S55bootmisc.sh
# ln -sf ../init.d/urandom ${D}${sysconfdir}/rcS.d/S55urandom
# ln -sf ../init.d/finish.sh ${D}${sysconfdir}/rcS.d/S99finish.sh
# udev will run at S03 if installed
if [ "${TARGET_ARCH}" = "arm" ]; then
ln -sf ../init.d/alignment.sh ${D}${sysconfdir}/rcS.d/S06alignment.sh
fi
install -m 0755 ${WORKDIR}/device_table.txt ${D}${sysconfdir}/device_table
}