Skip to content
Permalink
c5d0a65744
Go to file
 
 
Cannot retrieve contributors at this time
37 lines (31 sloc) 958 Bytes
#!/sbin/openrc-run
### BEGIN INIT INFO
# Provides: mce
# Required-Start: $remote_fs dsme dbus dbus-user
# Required-Stop: $remote_fs dsme dbus dbus-user
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Mode Control Entity
# Description: This init script starts the mode control software
# used on the Maemo platform for Internet Tablets
### END INIT INFO
description="This init script starts the mode control software used on the Maemo platform for Internet Tablets."
name="Mode Control Entity."
depend() {
need dsme dbus dbus-user
}
start_pre() {
ebegin "Starting mce"
RUNDIR=/var/run/mce
test -d $RUNDIR || (rm -f $RUNDIR; mkdir $RUNDIR)
/usr/sbin/waitdbus system
. /tmp/session_bus_address.user
/usr/sbin/waitdbus session
}
start() {
/usr/sbin/dsmetool -n -1 -t "/sbin/mce --force-syslog"
}
stop() {
eend "Stopping mce"
/usr/sbin/dsmetool -k "/sbin/mce --force-syslog"
}
You can’t perform that action at this time.