S
shellfly
Guest
I want to change my Caps_lock and Control_L when my computer startup
so i write a simple script in /etc/init.d/changecc,and chkconfig it ,but it seems not working...
the .xmodmap file is ok and it work fine when use xmodmap command in bash
i don't know where is the problem,can you help me?
1 #! /bin/bash
2
3 ### BEGIN INIT INFO
4 # Provides: changecc
5 # Required-Start: $null
6 # Required-Stop: #null
7 # Default-Start: 2 3 5
8 # Default-Stop: 0 1 6
9 # Short-Description: change Caps_Lock and Control_L keysym
10 # Description: change cc
11 ### END INIT INFO
12
13 #/etc/rc.status && rc_reset
14
15 case "$1" in
16 start)
17 echo "changecc start"
18 xmodmap /home/shellfly/.xmodmap
19 ;;
20 *)
21 xmodmap /home/shellfly/.xmodmap
22 ;;
23 esac
so i write a simple script in /etc/init.d/changecc,and chkconfig it ,but it seems not working...
the .xmodmap file is ok and it work fine when use xmodmap command in bash
i don't know where is the problem,can you help me?
1 #! /bin/bash
2
3 ### BEGIN INIT INFO
4 # Provides: changecc
5 # Required-Start: $null
6 # Required-Stop: #null
7 # Default-Start: 2 3 5
8 # Default-Stop: 0 1 6
9 # Short-Description: change Caps_Lock and Control_L keysym
10 # Description: change cc
11 ### END INIT INFO
12
13 #/etc/rc.status && rc_reset
14
15 case "$1" in
16 start)
17 echo "changecc start"
18 xmodmap /home/shellfly/.xmodmap
19 ;;
20 *)
21 xmodmap /home/shellfly/.xmodmap
22 ;;
23 esac