diff options
author | Holger Paradies <retabell@gmx.de> | 2014-04-18 15:46:27 +0200 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2014-05-04 11:53:41 +0200 |
commit | fb08176192eac30b5f4b3de9685c030d617e26d3 (patch) | |
tree | e98673aad8e0e251a5510f2fa71af7e1d7d49f6f /config/chroot_local-hooks | |
parent | f7e971d3471008acdbe98d44ba1ae3712dc07bed (diff) | |
download | kanotix-fb08176192eac30b5f4b3de9685c030d617e26d3.zip kanotix-fb08176192eac30b5f4b3de9685c030d617e26d3.tar.gz |
lxde jessie fixes
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-x | config/chroot_local-hooks/03-lxde-fixes | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/config/chroot_local-hooks/03-lxde-fixes b/config/chroot_local-hooks/03-lxde-fixes index 015cdc2..a5cff6f 100755 --- a/config/chroot_local-hooks/03-lxde-fixes +++ b/config/chroot_local-hooks/03-lxde-fixes @@ -1,4 +1,5 @@ #!/bin/sh +for file in /root/config/*; do [ -r $file ] && . $file; done if [ -x /usr/sbin/lightdm ]; then # dirty hack kanotix wallpaper on login-screen @@ -10,17 +11,21 @@ if [ -x /usr/sbin/lightdm ]; then sed -i 's/^#display-setup-script=/display-setup-script=\/usr\/sbin\/kanotix-lightdm-display-setup-script/' /etc/lightdm/lightdm.conf fi # old kanotix icon in login - sed -i 's/computer/kanotix/' /usr/share/lightdm-gtk-greeter/greeter.ui + if [ "$LB_DISTRIBUTION" = "wheezy" ]; then + sed -i 's/computer/kanotix/' /usr/share/lightdm-gtk-greeter/greeter.ui + fi # Industrial conflicts sed -i s/Industrial/Clearlooks-Phenix/ /etc/skel/.gtkrc-2.0 # on lxde i386 delete packages to reduce image-size - if ! [ -d /lib/x86_64-linux-gnu ]; then + if [ "$LB_ARCHITECTURE" = "i386" ]; then apt-get purge --yes aptitude aptitude-common apt-get purge --yes vim vim-common vim-runtime - rm -rf /usr/lib/python3/dist-packages/devscripts - apt-get purge --yes devscripts python3 python3-minimal python3.2 python3.2-minimal - apt-get install --yes -t wheezy devscripts + if [ "$LB_DISTRIBUTION" = "wheezy" ]; then + rm -rf /usr/lib/python3/dist-packages/devscripts + apt-get purge --yes devscripts python3 python3-minimal python3.2 python3.2-minimal + apt-get install --yes -t wheezy devscripts + fi fi # tmp skel @@ -38,4 +43,17 @@ cat <<"EOF" >/etc/skel/.mplayer/config #aspect=16:9 EOF + if [ "$LB_DISTRIBUTION" != "wheezy" ]; then +cat <<"EOF" >/etc/skel/.config/lxsession/LXDE/autostart +@lxpanel --profile LXDE +@pcmanfm --desktop --profile LXDE +@xscreensaver -no-splash +@xfce4-power-manager-wrapper +EOF + + # awesome in lightdm-menu + if [ -e /usr/share/xsessions/awesome.desktop ]; then + sed -i '/NoDisplay/d' /usr/share/xsessions/awesome.desktop + fi + fi fi |