update nand1..arch.tgz - intro /tmp as tmpfs - dhcpd timeout=5s
This commit is contained in:
parent
9cb03e30a3
commit
c14715fc1a
1 changed files with 18 additions and 2 deletions
20
build.sh
20
build.sh
|
@ -157,7 +157,7 @@ echo "------ Get basic Arch System"
|
||||||
#wget -q -P $DEST/output/sdcard/ -O - http://archlinuxarm.org/os/ArchLinuxARM-sun7i-latest.tar.gz | tar -xzf -
|
#wget -q -P $DEST/output/sdcard/ -O - http://archlinuxarm.org/os/ArchLinuxARM-sun7i-latest.tar.gz | tar -xzf -
|
||||||
cd $DEST/output/sdcard/
|
cd $DEST/output/sdcard/
|
||||||
wget -q http://archlinuxarm.org/os/ArchLinuxARM-sun7i-latest.tar.gz
|
wget -q http://archlinuxarm.org/os/ArchLinuxARM-sun7i-latest.tar.gz
|
||||||
tar xvzf ArchLinuxARM-sun7i-latest.tar.gz
|
tar xzf ArchLinuxARM-sun7i-latest.tar.gz
|
||||||
sync
|
sync
|
||||||
rm ArchLinuxARM-sun7i-latest.tar.gz
|
rm ArchLinuxARM-sun7i-latest.tar.gz
|
||||||
# we need this donno why???
|
# we need this donno why???
|
||||||
|
@ -190,7 +190,7 @@ chmod +x $DEST/output/sdcard/cubian-resize2fs
|
||||||
|
|
||||||
# script to install to NAND
|
# script to install to NAND
|
||||||
cp $SRC/scripts/nand-install.sh $DEST/output/sdcard/root
|
cp $SRC/scripts/nand-install.sh $DEST/output/sdcard/root
|
||||||
cp $SRC/bin/nand1-cubietruck-debian-boot.tgz $DEST/output/sdcard/root
|
cp $SRC/bin/nand1-boot-cubietruck-arch.tgz $DEST/output/sdcard/root
|
||||||
|
|
||||||
# install and configure locales for Germany
|
# install and configure locales for Germany
|
||||||
echo LANG='$DEST_LANG'.UTF-8 > $DEST/output/sdcard/etc/default.conf
|
echo LANG='$DEST_LANG'.UTF-8 > $DEST/output/sdcard/etc/default.conf
|
||||||
|
@ -209,6 +209,22 @@ echo cubie > $DEST/output/sdcard/etc/hostname
|
||||||
# not update the firmware!!
|
# not update the firmware!!
|
||||||
sed -i 's/#IgnorePkg =/IgnorePkg = linux-sun7i/g' $DEST/output/sdcard/etc/pacman.conf
|
sed -i 's/#IgnorePkg =/IgnorePkg = linux-sun7i/g' $DEST/output/sdcard/etc/pacman.conf
|
||||||
|
|
||||||
|
|
||||||
|
### mount /tmp as tmpfs
|
||||||
|
echo 'tmpfs /tmp tmpfs defaults,nosuid,size=30% 0 0' >> $DEST/output/sdcard/etc/fstab
|
||||||
|
|
||||||
|
### Optional /var/log
|
||||||
|
#echo 'tmpfs /var/log tmpfs defaults,nosuid 0 0' >> $DEST/output/sdcard/etc/fstab
|
||||||
|
|
||||||
|
##disable IPV6 and reduce timeout from 30s to 5 on dhcp daemon
|
||||||
|
|
||||||
|
#echo "ipv4only" >> /etc/dhcpcd.conf
|
||||||
|
#echo "noipv6rs" >> /etc/dhcpcd.conf
|
||||||
|
echo "timeout 5" >> /etc/dhcpcd.conf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# load modules you may load them per sysctl
|
# load modules you may load them per sysctl
|
||||||
cat > $DEST/output/sdcard/etc/modules-load.d/cubieModules.conf <<EOT
|
cat > $DEST/output/sdcard/etc/modules-load.d/cubieModules.conf <<EOT
|
||||||
hci_uart
|
hci_uart
|
||||||
|
|
Loading…
Add table
Reference in a new issue