added script to update extlinux.conf after kernel update
This commit is contained in:
parent
1169b7fc76
commit
e56a06070d
@ -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++))
|
||||
|
6
rpi/sed_extlinux.conf.sh
Normal file
6
rpi/sed_extlinux.conf.sh
Normal file
@ -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
|
||||
|
Reference in New Issue
Block a user