summaryrefslogtreecommitdiffstats
path: root/package/kexec/kexec-patch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/kexec/kexec-patch.sh')
-rwxr-xr-xpackage/kexec/kexec-patch.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/kexec/kexec-patch.sh b/package/kexec/kexec-patch.sh
new file mode 100755
index 000000000..4889705fc
--- /dev/null
+++ b/package/kexec/kexec-patch.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+SRCDIR=$1
+PATCHDIR=$2
+PATCHLIST=${PATCHDIR}/$3
+
+do_patch()
+{
+ cd ${SRCDIR}
+ for f in `cat ${PATCHLIST}` ; do
+ echo ${PATCHDIR}/$f
+ cat ${PATCHDIR}/$f | patch -p2
+ done
+}
+
+do_patch
+