Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| #!/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" | |
| } | |