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 +