Portál AbcLinuxu, 12. května 2025 10:44
#!/bin/bash
syndaemon -d #zablokuje touchpad po kazdem stisku klavesy na dobu 2s
echo "Deaktivace touchpadu po stisku klavesy zapnuta"
exit 0
Casem do tohoto skriptu budu pridavat dalsi prikazy, proto ho chci volat vzdalene a nechci tyto prikazy psat primo do .profile.
Vse tedy ulozim, odhlasim se a znovu se prihlasim. Skript se spusti - po stisku klavesy je deaktivovan touchpad, ale prihlaseni neprobehne! Pouze zmizi prihlasovaci formular a dal se nic nedeje.
Prosim o radu.
# Sample .profile for SuSE Linux # rewritten by Christian Steinruecken # # This file is read each time a login shell is started. # All other interactive shells will only read .bashrc; this is particularly # important for language settings, see below. test -z "$PROFILEREAD" && . /etc/profile # Most applications support several languages for their output. # To make use of this feature, simply uncomment one of the lines below or # add your own one (see /usr/share/locale/locale.alias for more codes) # #export LANG=de_DE.UTF-8 # uncomment this line for German output #export LANG=fr_FR.UTF-8 # uncomment this line for French output #export LANG=es_ES.UTF-8 # uncomment this line for Spanish output # Some people don't like fortune. If you uncomment the following lines, # you will have a fortune each time you log in#if [ -x /usr/bin/fortune ] ; then # echo # /usr/bin/fortune # echo #fi #Spusteni vlastniho skripru pri logovani login.sh
#!/bin/bash syndaemon -d #zablokuje touchpad po kazdem stisku klavesy na dobu 2s echo "Deaktivace touchpadu po stisku klavesy zapnuta" & exit 0popripade odeber ten exit 0
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.