mirror of
https://github.com/dschmenk/apple2pi.git
synced 2024-11-28 09:49:27 +00:00
Auto update of Linux files for a2pid install
Apple II now goes 80 column
This commit is contained in:
parent
ec5a386992
commit
cb402a78db
BIN
src/A2PI.PO
BIN
src/A2PI.PO
Binary file not shown.
@ -6,4 +6,5 @@ clean:
|
|||||||
rm $(BIN) *~
|
rm $(BIN) *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
$(BASH) ./install.sh
|
||||||
cp $(BIN) /usr/local/bin
|
cp $(BIN) /usr/local/bin
|
||||||
|
26
src/install.sh
Executable file
26
src/install.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#
|
||||||
|
# Update /boot partition files.
|
||||||
|
#
|
||||||
|
if [ ! -f /boot/cmdline.bak ] ; then
|
||||||
|
mv /boot/cmdline.txt /boot/cmdline.bak
|
||||||
|
echo "dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait" > /boot/cmdline.txt
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
# Disable getty on built-in serial port.
|
||||||
|
#
|
||||||
|
gettyline=`grep ttyAMA0 /etc/inittab`
|
||||||
|
if [ -n "$gettyline" -a ${gettyline:0:1} = T ] ; then
|
||||||
|
mv /etc/inittab /etc/inittab.bak
|
||||||
|
sed 's/^T0*/#T0*/' /etc/inittab.bak > /etc/inittab
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
# Add a2serclk and a2pid to rc.local
|
||||||
|
#
|
||||||
|
if [ -f /etc/rc.local ] ; then
|
||||||
|
if ! grep a2pid /etc/rc.local > /dev/null ; then
|
||||||
|
mv /etc/rc.local /etc/rc.local.bak
|
||||||
|
sed -e '/^exit/i\# Start Apple II Pi' -e '/^exit/i\/usr/local/bin/a2serclk' -e '/^exit/i\/usr/local/bin/a2pid --daemon' /etc/rc.local.bak > /etc/rc.local
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user