mode-c-detect
cyoung 2018-03-29 22:32:40 -04:00
rodzic 915391fa91
commit 14a21eaa0b
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -2,6 +2,7 @@
dtparam=audio=on
max_usb_current=1
dtparam=i2c_arm=on
dtparam=i2c1=on
dtparam=i2c1_baudrate=400000
dtparam=i2c_arm_baudrate=400000

Wyświetl plik

@ -22,11 +22,14 @@ chroot mnt/ apt-get install -y hostapd isc-dhcp-server
chroot mnt/ apt-get install -y tcpdump
#wifi startup
chroot mnt/ systemctl enable isc-dhcp-server
#ssh startup
chroot mnt/ systemctl enable ssh
#disable ntpd autostart
chroot mnt/ systemctl disable ntp
#root key
mkdir -p mnt/etc/ssh/authorized_keys
cp -f root mnt/etc/ssh/authorized_keys/root
chown root.root mnt/etc/ssh/authorized_keys/root
chmod 644 mnt/etc/ssh/authorized_keys/root
@ -129,10 +132,10 @@ make
make install
#disable serial console
sed -i /boot/cmdline.txt -e "s/console=ttyAMA0,[0-9]\+ //"
sed -i mnt/boot/cmdline.txt -e "s/console=ttyAMA0,[0-9]\+ //"
#Set the keyboard layout to US.
sed -i /etc/default/keyboard -e "/^XKBLAYOUT/s/\".*\"/\"us\"/"
sed -i mnt/etc/default/keyboard -e "/^XKBLAYOUT/s/\".*\"/\"us\"/"
#boot settings
cp -f config.txt mnt/boot/