zdravim, nastavil automaticke spusteni skriptu ale po restartu se v souboru syndaemon.txt, coz je chybovy napise: Can’t open display, nevite co s tim?
Je to skript na to, aby se pri psani vypl touchpad, takto vypada:
#! /bin/bash
#
# Author: Marek Stopka , 2007
#
# /etc/init.d/syndeamon
#
### BEGIN INIT INFO
# Provides: syndaemon
# Required-Start: earlyxdm
# Required-Stop:
# Default-Start: 5
# Default-Stop:
# Short-Description: Set up "Disable Touchpad Temporarily When Typing"
# Description: Disable Touchpad Temporarily When Typing
### END INIT INFO
. /etc/rc.status
ps=/bin/ps # path to ps executable
DISPLAY=0
syndaemon_bin=/usr/bin/syndaemon # path to syndaemon binary executable
syndaemon_delay="2" # How many seconds to wait after the last key press before enabling the touchpad.
syndaemon_pidfile=/var/run/syndeamon.init.pid # path to pid file
syndaemon_opts="-d -p $syndaemon_pidfile -i $syndaemon_delay" # options for syndaemon executable
# start syndeamon tool
function start () {
! $0 status > /dev/null && startproc -f -p $syndaemon_pidfile $syndaemon_bin $syndaemon_opts 2> /home/petr/skripty/syndaemon.txt
}
function stop () {
killproc -p $syndaemon_pidfile -TERM $syndaemon_bin
}
rc_reset
# See how we were called.
case "$1" in
start)
echo -n "Starting syndaemon"
start
rc_status -v
;;
stop)
# Stop daemon.
echo -n "Stopping syndaemon"
stop
rc_status -v
;;
try-restart)
$0 status >/dev/null && $0 restart
rc_status
;;
restart)
$0 stop
$0 start
rc_status
;;
force-reload)
$0 stop && $0 start
rc_status
;;
reload)
rc_failed 3
rc_status -v
;;
status)
echo -n "Checking for syndaemon "
checkproc -p $syndaemon_pidfile $syndaemon_bin
rc_status -v
;;
*)
echo "Usage: $0 {start|stop|try-restart|restart|force-reload|reload|status}"
exit 1
esac
rc_exit
Smaž řádek
DISPLAY=0
a /etc/init.d/syndaemon si dej do/etc/X11/xinit/xinitrc
někde na konci.Bohuzel, stale stejny vysledek