From e56a06070dc87a9ff83a43e1bfe5496ea9f773ad Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sun, 16 Dec 2018 15:38:04 +0100 Subject: [PATCH] added script to update extlinux.conf after kernel update --- create_arm_img_urpmi.sh | 5 +++-- rpi/sed_extlinux.conf.sh | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 rpi/sed_extlinux.conf.sh diff --git a/create_arm_img_urpmi.sh b/create_arm_img_urpmi.sh index 1b9274b..3f29e9a 100755 --- a/create_arm_img_urpmi.sh +++ b/create_arm_img_urpmi.sh @@ -568,8 +568,9 @@ brcmfmac" >> "$BUILD_PATH"/etc/modules error "line $LINENO error copying wifi firmware in $ROOTP/usr/lib/firmware/brcm/ : exiting" exit 1 fi - info "copying tools in /usr/local/" - /bin/cp -a "$SOURCE_PATH/tools" "$BUILD_PATH/usr/local" + info "copying tools in /usr/local/bin/" + /bin/cp -a "$SOURCE_PATH/tools/" "$BUILD_PATH/usr/local/bin/" + /bin/cp -a "$SOURCE_PATH/rpi/sed_extlinux.conf.sh" "$BUILD_PATH/usr/local/bin/" if ! [ $? -eq 0 ];then error "line $LINENO error copying tools" ERRORN=$((ERRORN++)) diff --git a/rpi/sed_extlinux.conf.sh b/rpi/sed_extlinux.conf.sh new file mode 100644 index 0000000..64e576d --- /dev/null +++ b/rpi/sed_extlinux.conf.sh @@ -0,0 +1,6 @@ +#!/bin/sh +cd /boot/extlinux +sed -i.old -e s,/boot,,g extlinux.conf +sed -i -e s,/usr/lib/.*,/fdt/,g extlinux.conf +sed -i -e 's/append.*$/& audit=0 fsck.repair=1/' extlinux.conf +