Új hozzászólás Aktív témák
-
Vladi
nagyúr
Sziasztok!
Van ez a keytouch-os init szkript:
#!/bin/sh
#
# /etc/init.d/keytouchacpid
# Subsystem file for keytouch-acpid
#
# chkconfig: 2345 95 05
# description: keytouch-acpid lets ACPI hotkeys work as normal keys
#
# processname: keytouchacpid
#
# http://keytouch.sourceforge.net
#
# Heavly edit to match with fedora init scripts schemes
# First edit by Xavier Lamien aka SmootherFrOgZ < lxtnow[at]gmail.com >
#
# Source function library.
if [ -f /etc/init.d/functions ] ; then
. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
. /etc/rc.d/init.d/functions
else
exit 0
fi
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="keytouch-acpid daemon"
DAEMON="keytouchacpid"
SCRIPTNAME=/etc/init.d/keytouchacpid
prog="keytouch-acpid"
RETVAL=0
exec="/usr/bin/keytouch-acpid &"
PID="ps axo "%p,%a" |grep "$NAME"|grep -v grep|cut -d',' -f1"
getpid () {
PID="ps axo "%p,%a" |grep "$NAME"|grep -v grep|cut -d',' -f1"
}
start () {
#start daemon
action $"Starting $prog daemon:" $exec
RETVAL=$?
if
[ "$RETVAL" -eq "0" ]; then
touch /var/lock/subsys/keytouchacpid
fi
return
}
stop () {
getpid
if [ -n "$PID" ]; then
#stop daemon
killproc $NAME
fi
RETVAL=$?
if
[ $RETVAL -eq "0" ]; then
rm -f /var/lock/subsys/keytouchacpid
}
restart () {
stop
start
}
case $1 in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
condrestart)
[ -f /var/lock/subsys/keytouchacpid ] && restart || :
;;
reload)
echo -n $"Reloading $DESC: $NAME "
killproc $NAME -HUP
RETVAL=$?
echo
;;
status)
status $NAME
;;
restartlog)
stop
cat /dev/null >/var/log/keytouchacpid/error_log
start
;;
*)
echo $"Usage: $NAME {start|stop|restart|condrestart|reload|status}"
exit 1
esac
exit $RETVALErre azt mondja nekem:
[root@localhost ~]# /etc/init.d/keytouchacpid status
/etc/init.d/keytouchacpid: line 60: syntax error near unexpected token `}'
/etc/init.d/keytouchacpid: line 60: `}'
[root@localhost ~]#A kérdéses sor ennek a vége:
stop () {
getpid
if [ -n "$PID" ]; then
#stop daemon
killproc $NAME
fi
RETVAL=$?
if
[ $RETVAL -eq "0" ]; then
rm -f /var/lock/subsys/keytouchacpid
}Nem bírok rájönni mi itt a szintaxis hiba. Csomagból lett telepítve, nem én követtem el.
Új hozzászólás Aktív témák
- Mielőbb díjat rakatnának a görögök az olcsó csomagokra az EU-ban
- Counter-Strike: Global Offensive (CS:GO) / Counter-Strike 2 (CS2)
- Építő/felújító topik
- Milyen routert?
- Nintendo Switch 2
- Kerékpárosok, bringások ide!
- Honor Magic6 Pro - kör közepén számok
- NBA és kosárlabda topic
- Kedden érkezik a Galaxy S25 Edge
- Kés topik
- További aktív témák...
- Kaspersky, McAfee, Norton, Avast és egyéb vírusírtó licencek a legolcsóbban, egyenesen a gyártóktól!
- Eredeti Microsoft termékek - MEGA Akciók! Windows, Office Pro Plus, Project Pro, Visio Pro stb.
- Windows, Office licencek kedvező áron, egyenesen a Microsoft-tól - Automata kézbesítés utalással is!
- Új, bontatlan World of Warcraft gyűjtői kiadások
- Játékkulcsok olcsón: Steam, Uplay, GoG, Origin, Xbox, PS stb.
- Új és használt laptopok , üzletitől a gamerig , kedvező áron. Garanciával !
- ALIENWARE Area-51 R6 Threadripper Edition 1920X
- Bomba Ár! Dell Latitude 3190 - Intel N4120 I 4GB I 128GB SSD I 11,6" HD I Cam I W11 I Garancia!
- ÚJ- Lenovo ThinkVision T24i-10 - 24" monitor - Számla, garancia
- LG 27GP95RP - 27" Nano IPS - UHD 4K - 160Hz 1ms - NVIDIA G-Sync - FreeSync Premium PRO - HDR 600
Állásajánlatok
Cég: PC Trade Systems Kft.
Város: Szeged
Cég: PC Trade Systems Kft.
Város: Szeged