From e23a2fa2e93a05ea8d6b07ab4ded5d91b9ac1b54 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 28 May 2016 21:19:55 +0200 Subject: [PATCH] Force using bash in post install script. https://github.com/igorpecovnik/lib/issues/325#issuecomment-222322653 --- patch/kernel/cubox-default/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/cubox-dev/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/cubox-next/bash_to_afterinstall.patch | 11 +++++++++++ .../kernel/marvell-default/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/marvell-next/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/neo-default/bash_to_afterinstall.patch | 11 +++++++++++ .../odroidc1-default/bash_to_afterinstall.patch | 11 +++++++++++ .../odroidc2-default/bash_to_afterinstall.patch | 11 +++++++++++ .../odroidxu4-default/bash_to_afterinstall.patch | 11 +++++++++++ .../kernel/odroidxu4-next/bash_to_afterinstall.patch | 11 +++++++++++ .../kernel/pine64-default/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/s500-default/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/sun4i-default/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/sun5i-default/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/sun7i-default/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/sun8i-default/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/sunxi-dev/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/sunxi-next/bash_to_afterinstall.patch | 11 +++++++++++ patch/kernel/udoo-default/bash_to_afterinstall.patch | 11 +++++++++++ 19 files changed, 209 insertions(+) create mode 100644 patch/kernel/cubox-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/cubox-dev/bash_to_afterinstall.patch create mode 100644 patch/kernel/cubox-next/bash_to_afterinstall.patch create mode 100644 patch/kernel/marvell-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/marvell-next/bash_to_afterinstall.patch create mode 100644 patch/kernel/neo-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/odroidc1-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/odroidc2-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/odroidxu4-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/odroidxu4-next/bash_to_afterinstall.patch create mode 100644 patch/kernel/pine64-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/s500-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/sun4i-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/sun5i-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/sun7i-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/sun8i-default/bash_to_afterinstall.patch create mode 100644 patch/kernel/sunxi-dev/bash_to_afterinstall.patch create mode 100644 patch/kernel/sunxi-next/bash_to_afterinstall.patch create mode 100644 patch/kernel/udoo-default/bash_to_afterinstall.patch diff --git a/patch/kernel/cubox-default/bash_to_afterinstall.patch b/patch/kernel/cubox-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/cubox-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/cubox-dev/bash_to_afterinstall.patch b/patch/kernel/cubox-dev/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/cubox-dev/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/cubox-next/bash_to_afterinstall.patch b/patch/kernel/cubox-next/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/cubox-next/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/marvell-default/bash_to_afterinstall.patch b/patch/kernel/marvell-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/marvell-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/marvell-next/bash_to_afterinstall.patch b/patch/kernel/marvell-next/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/marvell-next/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/neo-default/bash_to_afterinstall.patch b/patch/kernel/neo-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/neo-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/odroidc1-default/bash_to_afterinstall.patch b/patch/kernel/odroidc1-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/odroidc1-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/odroidc2-default/bash_to_afterinstall.patch b/patch/kernel/odroidc2-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/odroidc2-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/odroidxu4-default/bash_to_afterinstall.patch b/patch/kernel/odroidxu4-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/odroidxu4-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/odroidxu4-next/bash_to_afterinstall.patch b/patch/kernel/odroidxu4-next/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/odroidxu4-next/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/pine64-default/bash_to_afterinstall.patch b/patch/kernel/pine64-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/pine64-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/s500-default/bash_to_afterinstall.patch b/patch/kernel/s500-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/s500-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/sun4i-default/bash_to_afterinstall.patch b/patch/kernel/sun4i-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/sun4i-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/sun5i-default/bash_to_afterinstall.patch b/patch/kernel/sun5i-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/sun5i-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/sun7i-default/bash_to_afterinstall.patch b/patch/kernel/sun7i-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/sun7i-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/sun8i-default/bash_to_afterinstall.patch b/patch/kernel/sun8i-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/sun8i-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/sunxi-dev/bash_to_afterinstall.patch b/patch/kernel/sunxi-dev/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/sunxi-dev/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/sunxi-next/bash_to_afterinstall.patch b/patch/kernel/sunxi-next/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/sunxi-next/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e + diff --git a/patch/kernel/udoo-default/bash_to_afterinstall.patch b/patch/kernel/udoo-default/bash_to_afterinstall.patch new file mode 100644 index 0000000000..ce95ec007b --- /dev/null +++ b/patch/kernel/udoo-default/bash_to_afterinstall.patch @@ -0,0 +1,11 @@ +--- a/scripts/package/builddeb ++++ b/scripts/package/builddeb +@@ -218,7 +218,7 @@ + for script in postinst postrm preinst prerm ; do + mkdir -p "$tmpdir$debhookdir/$script.d" + cat < "$tmpdir/DEBIAN/$script" +-#!/bin/sh ++#!/bin/bash + + set -e +