wok diff gpm/stuff/etc/init.d/gpm @ rev 13112
amsn: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 27 10:11:54 2012 +0200 (2012-06-27) |
parents | |
children | 8ebec64e4191 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gpm/stuff/etc/init.d/gpm Wed Jun 27 10:11:54 2012 +0200 1.3 @@ -0,0 +1,40 @@ 1.4 +#!/bin/sh 1.5 +# /etc/init.d/gpm : Start, stop and restart gpm server on SliTaz, at 1.6 +# boot time or with the command line. 1.7 +# 1.8 +# To start gpm server at boot time, just put mysql in the $RUN_DAEMONS 1.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf 1.10 +# 1.11 +. /etc/init.d/rc.functions 1.12 +. /etc/daemons.conf 1.13 + 1.14 +NAME=gpm 1.15 +DESC="gpm server" 1.16 +DAEMON=/usr/sbin/gpm 1.17 +OPTIONS=$GPM_OPTIONS 1.18 +[ -n "$OPTIONS" ] || OPTIONS="-m /dev/psaux -t ps2" 1.19 + 1.20 +case "$1" in 1.21 + start) 1.22 + $DAEMON $OPTIONS 1.23 + status 1.24 + ;; 1.25 + stop) 1.26 + $DAEMON -k 1.27 + status 1.28 + ;; 1.29 + restart) 1.30 + $DAEMON -k 1.31 + status 1.32 + $DAEMON $OPTIONS 1.33 + status 1.34 + ;; 1.35 + *) 1.36 + echo "" 1.37 + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" 1.38 + echo "" 1.39 + exit 1 1.40 + ;; 1.41 +esac 1.42 + 1.43 +exit 0