Subversion Repositories livecd

Rev

Rev 133 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 133 Rev 134
Line 62... Line 62...
62
 
62
 
63
# not really restart x, but will kill all processes of localuser
63
# not really restart x, but will kill all processes of localuser
64
# (including windwos manager and autologin)
64
# (including windwos manager and autologin)
65
restartx ()
65
restartx ()
66
{
66
{
-
 
67
    ( sleep 2; rm -f /tmp/.X0-lock; sudo psi-restart-xserver; rm -f /tmp/.X0-lock ) &
67
    ps wwaux | grep "^l_psi" | awk '{ print $2 }' | while read pid; do kill -9 $pid; done    
68
    ps wwaux | grep "^l_psi" | awk '{ print $2 }' | while read pid; do kill -9 $pid; done    
68
}
69
}
69
 
70
 
70
### show menue
71
### show menue
71
while true; do
72
while true; do