diff options
-rwxr-xr-x | config/binary_local-hooks/grub2-theme | 6 | ||||
-rwxr-xr-x | config/chroot_local-hooks/05-ndis | 1 | ||||
-rwxr-xr-x | config/chroot_local-hooks/06-bluetooth | 3 | ||||
-rwxr-xr-x | config/chroot_local-hooks/07-dkms | 1 | ||||
-rwxr-xr-x | config/chroot_local-hooks/audio-hack-silentinit | 1 | ||||
-rwxr-xr-x | config/chroot_local-hooks/flash-live | 4 | ||||
-rwxr-xr-x | config/chroot_local-hooks/plymouth | 2 |
7 files changed, 11 insertions, 7 deletions
diff --git a/config/binary_local-hooks/grub2-theme b/config/binary_local-hooks/grub2-theme index 36464ee..8273a80 100755 --- a/config/binary_local-hooks/grub2-theme +++ b/config/binary_local-hooks/grub2-theme @@ -9,6 +9,6 @@ grub2|burg) esac mkdir -p binary/boot/grub -cp chroot/usr/share/grub/unicode.pf2 binary/boot/grub/ -cp chroot/usr/share/images/grub/kanotix-logo.png binary/boot/grub/ - +cp chroot/usr/share/grub/unicode.pf2 binary/boot/grub/ || : +cp chroot/usr/share/images/grub/kanotix-logo.png binary/boot/grub/ || : +exit 0 diff --git a/config/chroot_local-hooks/05-ndis b/config/chroot_local-hooks/05-ndis index 8b77f81..7b89a97 100755 --- a/config/chroot_local-hooks/05-ndis +++ b/config/chroot_local-hooks/05-ndis @@ -1,4 +1,5 @@ #!/bin/sh +[ -x /usr/sbin/ndiswrapper ] || exit 0 [ -f /root/build.conf ] && . /root/build.conf if [ "$LB_ARCHITECTURE" = "amd64" ]; then wget -qO- http://kanotix.com/files/fix/ndiswrapper/ndiswrapper64-fwlan64.tar.gz|tar zxC /etc diff --git a/config/chroot_local-hooks/06-bluetooth b/config/chroot_local-hooks/06-bluetooth index 98f422e..6f53821 100755 --- a/config/chroot_local-hooks/06-bluetooth +++ b/config/chroot_local-hooks/06-bluetooth @@ -1,3 +1,4 @@ #!/bin/sh -sed -i 's/^\(HIDD_ENABLED\)=.*/\1=1/' /etc/default/bluetooth +[ -e /etc/default/bluetooth ] && sed -i 's/^\(HIDD_ENABLED\)=.*/\1=1/' /etc/default/bluetooth #sed -i 's/\(^HIDD_OPTIONS\)=.*/\1="--master --server --search"/' /etc/default/bluetooth +exit 0 diff --git a/config/chroot_local-hooks/07-dkms b/config/chroot_local-hooks/07-dkms index 8f57d16..4de0351 100755 --- a/config/chroot_local-hooks/07-dkms +++ b/config/chroot_local-hooks/07-dkms @@ -1,2 +1,3 @@ #!/bin/bash +[ -x /usr/lib/dkms/dkms_autoinstaller ] || exit 0 for x in /boot/vmlinuz-*;do KVERS=$x /usr/lib/dkms/dkms_autoinstaller start ${x#/boot/vmlinuz-}; done diff --git a/config/chroot_local-hooks/audio-hack-silentinit b/config/chroot_local-hooks/audio-hack-silentinit index b8affdf..c7e7a58 100755 --- a/config/chroot_local-hooks/audio-hack-silentinit +++ b/config/chroot_local-hooks/audio-hack-silentinit @@ -1,4 +1,5 @@ #!/bin/sh +[ -x /usr/bin/startkde ] || exit 0 mkdir -p /etc/skel/.kde/Autostart cat >/etc/skel/.kde/Autostart/audio-hack-silentinit.sh <<"EOF" #!/bin/sh diff --git a/config/chroot_local-hooks/flash-live b/config/chroot_local-hooks/flash-live index d300252..fc9df88 100755 --- a/config/chroot_local-hooks/flash-live +++ b/config/chroot_local-hooks/flash-live @@ -1,5 +1,5 @@ #!/bin/sh mkdir -p /etc/adobe echo EnableLinuxHWVideoDecode=1 > /etc/adobe/mms.cfg -ln -s /usr/bin/install-flash-local /etc/skel/.kde/Autostart/ - +[ -x /usr/bin/startkde ] && ln -s /usr/bin/install-flash-local /etc/skel/.kde/Autostart/ +exit 0 diff --git a/config/chroot_local-hooks/plymouth b/config/chroot_local-hooks/plymouth index f2ef82d..c5432fa 100755 --- a/config/chroot_local-hooks/plymouth +++ b/config/chroot_local-hooks/plymouth @@ -1,3 +1,3 @@ #!/bin/sh -plymouth-set-default-theme -R kanotix-logo +plymouth-set-default-theme -R kanotix-logo || : |