mirror of
https://github.com/MiSTer-devel/Linux_Image_creator_MiSTer.git
synced 2026-05-17 03:03:57 +00:00
Release 20210825.
This commit is contained in:
@@ -11,7 +11,7 @@ DIR=$PWD
|
||||
SRCDIR=${DIR}
|
||||
DSTDIR=/media/rootfs
|
||||
|
||||
dd if=/dev/zero of=linux.img bs=64k count=5000
|
||||
dd if=/dev/zero of=linux.img bs=64k count=6000
|
||||
|
||||
echo "Formatting Linux partition..."
|
||||
mkfs.ext4 -L rootfs linux.img || exit 0
|
||||
@@ -54,25 +54,15 @@ sed 's/rw,noauto/rw,noauto,noatime,nodiratime/g' -i ${DSTDIR}/etc/fstab
|
||||
sed 's/ext2/ext4/g' -i ${DSTDIR}/etc/fstab
|
||||
|
||||
sed 's/\/sh/\/bash/g' -i ${DSTDIR}/etc/passwd
|
||||
mv ${DSTDIR}/etc/init.d/S40network ${DSTDIR}/etc/init.d/S90network
|
||||
rm ${DSTDIR}/etc/init.d/*network
|
||||
mv ${DSTDIR}/etc/init.d/*connman ${DSTDIR}/etc/init.d/S35connman
|
||||
mv ${DSTDIR}/etc/init.d/*udev ${DSTDIR}/etc/init.d/S40udev
|
||||
rm ${DSTDIR}/sbin/udhcpc
|
||||
mkdir -p ${DSTDIR}/media/rootfs || exit 0
|
||||
sed '/PATH/ s/$/:\/media\/fat\/linux:\/media\/fat\/Scripts:\./' -i ${DSTDIR}/etc/profile
|
||||
sed s/\'\#\ \'/\'\$\(pwd\)\#\ \'/g -i ${DSTDIR}/etc/profile
|
||||
sed s/\'\$\ \'/\'\$\(pwd\)\$\ \'/g -i ${DSTDIR}/etc/profile
|
||||
|
||||
sed 's/RememberPowered.*/RememberPowered\ =\ false/g' -i ${DSTDIR}/etc/bluetooth/main.conf
|
||||
cat >> ${DSTDIR}/etc/bluetooth/main.conf <<- __EOF__
|
||||
|
||||
# Permanently enables the Fast Connectable setting for adapters that
|
||||
# support it. When enabled other devices can connect faster to us,
|
||||
# however the tradeoff is increased power consumptions. This feature
|
||||
# will fully work only on kernel version 4.1 and newer. Defaults to
|
||||
# 'false'.
|
||||
FastConnectable = true
|
||||
|
||||
__EOF__
|
||||
|
||||
cat >> ${DSTDIR}/etc/profile <<- __EOF__
|
||||
|
||||
export LC_ALL=en_US.UTF-8
|
||||
|
||||
BIN
firmware.tar.gz
BIN
firmware.tar.gz
Binary file not shown.
BIN
modules.tar.gz
BIN
modules.tar.gz
Binary file not shown.
BIN
rootfs.tar.gz
BIN
rootfs.tar.gz
Binary file not shown.
BIN
zImage_dtb
BIN
zImage_dtb
Binary file not shown.
Reference in New Issue
Block a user