14 lines
476 B
Bash
14 lines
476 B
Bash
|
# put your favourite window manager here
|
||
|
STARTUP_WM=kde
|
||
|
|
||
|
# this one does not work - S00knoppix-autoconfig will always overwrite it
|
||
|
# echo "$STARTUP_WM" >/etc/sysconfig/desktop
|
||
|
|
||
|
# this one does work - uuuugly!
|
||
|
FILE=/etc/rcS.d/S00knoppix-autoconfig
|
||
|
if grep -q '^\[ -n "$DESKTOP" \] || DESKTOP=' "$FILE"
|
||
|
then sed -i "/^\[ -n \"\$DESKTOP\" \] || DESKTOP=/s/DESKTOP=\".*$/DESKTOP=\"$STARTUP_WM\"/g" "$FILE"
|
||
|
else echo " setting of default window manager not found in $FILE"
|
||
|
fi
|
||
|
|