diff --git a/patch/kernel/cubox-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/cubox-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch index 02d8d801b..c70c2d684 100644 --- a/patch/kernel/cubox-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/cubox-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch @@ -26,10 +26,10 @@ index 152d4d2..9b30ad2 100644 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/cubox-dev/packaging-3.14-DEV-with-postinstall-scripts.patch b/patch/kernel/cubox-dev/packaging-3.14-DEV-with-postinstall-scripts.patch index 51326cd50..892dc7507 100644 --- a/patch/kernel/cubox-dev/packaging-3.14-DEV-with-postinstall-scripts.patch +++ b/patch/kernel/cubox-dev/packaging-3.14-DEV-with-postinstall-scripts.patch @@ -26,10 +26,10 @@ index 152d4d2..9b30ad2 100644 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/cubox-next/packaging-4.x-NEXT-with-postinstall-scripts.patch b/patch/kernel/cubox-next/packaging-4.x-NEXT-with-postinstall-scripts.patch index 79e79de9d..5ae376534 100644 --- a/patch/kernel/cubox-next/packaging-4.x-NEXT-with-postinstall-scripts.patch +++ b/patch/kernel/cubox-next/packaging-4.x-NEXT-with-postinstall-scripts.patch @@ -8,10 +8,10 @@ index 6c3b038..cc9b3c0 100755 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/marvell-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/marvell-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch index 076bbe154..524b27e78 100644 --- a/patch/kernel/marvell-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/marvell-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch @@ -32,10 +32,10 @@ index 3001ec5..dc76d3c + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/marvell-next/packaging-4.x-NEXT-with-postinstall-scripts.patch b/patch/kernel/marvell-next/packaging-4.x-NEXT-with-postinstall-scripts.patch index 79e79de9d..5ae376534 100644 --- a/patch/kernel/marvell-next/packaging-4.x-NEXT-with-postinstall-scripts.patch +++ b/patch/kernel/marvell-next/packaging-4.x-NEXT-with-postinstall-scripts.patch @@ -8,10 +8,10 @@ index 6c3b038..cc9b3c0 100755 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/neo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/neo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch index 02d8d801b..c70c2d684 100644 --- a/patch/kernel/neo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/neo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch @@ -26,10 +26,10 @@ index 152d4d2..9b30ad2 100644 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/odroidc1-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/odroidc1-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch index 076bbe154..524b27e78 100644 --- a/patch/kernel/odroidc1-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/odroidc1-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch @@ -32,10 +32,10 @@ index 3001ec5..dc76d3c + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/odroidc2-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/odroidc2-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch index 02d8d801b..c70c2d684 100644 --- a/patch/kernel/odroidc2-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/odroidc2-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch @@ -26,10 +26,10 @@ index 152d4d2..9b30ad2 100644 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/odroidxu4-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/odroidxu4-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch index 076bbe154..524b27e78 100644 --- a/patch/kernel/odroidxu4-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/odroidxu4-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch @@ -32,10 +32,10 @@ index 3001ec5..dc76d3c + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/odroidxu4-next/packaging-4.x-NEXT-with-postinstall-scripts.patch b/patch/kernel/odroidxu4-next/packaging-4.x-NEXT-with-postinstall-scripts.patch index 76a71a224..ab112ece4 100644 --- a/patch/kernel/odroidxu4-next/packaging-4.x-NEXT-with-postinstall-scripts.patch +++ b/patch/kernel/odroidxu4-next/packaging-4.x-NEXT-with-postinstall-scripts.patch @@ -8,10 +8,10 @@ index 88dbf23..8fb7611 100755 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/s500-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/s500-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch index 076bbe154..524b27e78 100644 --- a/patch/kernel/s500-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/s500-default/packaging-3.10-DEFAULT-with-postinstall-scripts.patch @@ -32,10 +32,10 @@ index 3001ec5..dc76d3c + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/sun8i-dev/packaging-4.x-DEV-with-postinstall-scripts.patch b/patch/kernel/sun8i-dev/packaging-4.x-DEV-with-postinstall-scripts.patch index 0630e0859..4b9ae02ff 100644 --- a/patch/kernel/sun8i-dev/packaging-4.x-DEV-with-postinstall-scripts.patch +++ b/patch/kernel/sun8i-dev/packaging-4.x-DEV-with-postinstall-scripts.patch @@ -8,10 +8,10 @@ index 6c3b038..cc9b3c0 100755 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/sunxi-dev/packaging-4.x-DEV-with-postinstall-scripts.patch b/patch/kernel/sunxi-dev/packaging-4.x-DEV-with-postinstall-scripts.patch index 0630e0859..4b9ae02ff 100644 --- a/patch/kernel/sunxi-dev/packaging-4.x-DEV-with-postinstall-scripts.patch +++ b/patch/kernel/sunxi-dev/packaging-4.x-DEV-with-postinstall-scripts.patch @@ -8,10 +8,10 @@ index 6c3b038..cc9b3c0 100755 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/sunxi-next/packaging-4.x-NEXT-with-postinstall-scripts.patch b/patch/kernel/sunxi-next/packaging-4.x-NEXT-with-postinstall-scripts.patch index c5c4de327..ea04b7f41 100644 --- a/patch/kernel/sunxi-next/packaging-4.x-NEXT-with-postinstall-scripts.patch +++ b/patch/kernel/sunxi-next/packaging-4.x-NEXT-with-postinstall-scripts.patch @@ -8,10 +8,10 @@ index 6c3b038..cc9b3c0 100755 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/udoo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch b/patch/kernel/udoo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch index 02d8d801b..c70c2d684 100644 --- a/patch/kernel/udoo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch +++ b/patch/kernel/udoo-default/packaging-3.14-DEFAULT-with-postinstall-scripts.patch @@ -26,10 +26,10 @@ index 152d4d2..9b30ad2 100644 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + # diff --git a/patch/kernel/udoo-next/packaging-4.x-NEXT-with-postinstall-scripts.patch b/patch/kernel/udoo-next/packaging-4.x-NEXT-with-postinstall-scripts.patch index 79e79de9d..5ae376534 100644 --- a/patch/kernel/udoo-next/packaging-4.x-NEXT-with-postinstall-scripts.patch +++ b/patch/kernel/udoo-next/packaging-4.x-NEXT-with-postinstall-scripts.patch @@ -8,10 +8,10 @@ index 6c3b038..cc9b3c0 100755 + # Create preinstall and post install script to remove dtb + if [[ "$1" == *dtb* ]]; then -+ echo "if [ -d /boot/dtb ]; then rm -rf /boot/dtb; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /boot/dtb-$version ]; then rm -rf /boot/dtb-$version; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb-$version ]; then mv /boot/dtb-$version /boot/dtb-$version.old; fi" >> $pdir/DEBIAN/preinst + echo "if [ -d /boot/dtb.old ]; then rm -rf /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst -+ echo "if [ -d /dtb ]; then rm -rf /dtb; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /dtb ]; then mv /dtb /dtb.old; fi" >> $pdir/DEBIAN/preinst ++ echo "if [ -d /boot/dtb ]; then mv /boot/dtb /boot/dtb.old; fi" >> $pdir/DEBIAN/preinst + echo "exit 0" >> $pdir/DEBIAN/preinst + chmod 775 $pdir/DEBIAN/preinst + #