www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

startmandrake2.sh (384B)


      1 #!/bin/bash
      2 source /etc/profile
      3 
      4 signal_x_ready="$1"
      5 
      6 /etc/rc.d/init.d/xfs start
      7 
      8 X -bpp 32 :1 &
      9 x_pid="$!"
     10 
     11 export DISPLAY=:1
     12 
     13 while ! xsetroot -solid gray; do
     14   sleep 1
     15 done
     16 
     17 xhost +local:
     18 
     19 # Fix the sound permissions
     20 chmod g+rw /dev/dsp
     21 gpasswd -a georges audio
     22 
     23 touch "$signal_x_ready" # tell the outer system that our X is ready.
     24 
     25 su georges -c "startkde"
     26 
     27 sleep 5
     28 kill "$x_pid"