diff options
Diffstat (limited to 'config/chroot_local-hooks/03-lxde-fixes')
-rwxr-xr-x | config/chroot_local-hooks/03-lxde-fixes | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/config/chroot_local-hooks/03-lxde-fixes b/config/chroot_local-hooks/03-lxde-fixes index 0ce1607..e94eb1b 100755 --- a/config/chroot_local-hooks/03-lxde-fixes +++ b/config/chroot_local-hooks/03-lxde-fixes @@ -1,15 +1,12 @@ #!/bin/sh for file in /root/config/*; do [ -r $file ] && . $file; done -if [ -x /usr/sbin/lightdm ]; then +if [ -x /usr/bin/lxde-logout ]; then # dirty hack kanotix wallpaper on login-screen echo "background=/usr/share/images/kanotix-starrise/kanotix-starrise.png" >>/etc/lightdm/lightdm-gtk-greeter.conf # enable display of users at login prompt sed -i 's/^greeter-hide-users=true/greeter-hide-users=false/' /etc/lightdm/lightdm.conf - # script is called by lightdm - if [ -x /usr/sbin/kanotix-lightdm-display-setup-script ]; 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 if [ "$LB_DISTRIBUTION" = "wheezy" ]; then sed -i 's/computer/kanotix/' /usr/share/lightdm-gtk-greeter/greeter.ui @@ -17,14 +14,16 @@ if [ -x /usr/sbin/lightdm ]; then # Industrial conflicts sed -i s/Industrial/Clearlooks-Phenix/ /etc/skel/.gtkrc-2.0 - # on lxde i386 delete packages to reduce image-size - if [ "$LB_ARCHITECTURE" = "i386" ]; then - apt-get purge --yes aptitude aptitude-common - apt-get purge --yes vim vim-common vim-runtime - 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 + # on lxde i386 wheezy delete packages to reduce image-size + if [ "$LB_DISTRIBUTION" = "wheezy" ]; then + if [ "$LB_ARCHITECTURE" = "i386" ]; then + apt-get purge --yes aptitude aptitude-common + apt-get purge --yes vim vim-common vim-runtime + 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 fi |