mirror of
https://github.com/dschmenk/apple2pi.git
synced 2024-11-24 12:31:30 +00:00
Fix updates to config files
This commit is contained in:
parent
12c6ea45bb
commit
e6ba79fbb1
8
debian/postinst
vendored
8
debian/postinst
vendored
@ -27,11 +27,15 @@ case "$1" in
|
|||||||
cp /boot/cmdline.txt /boot/cmdline.bak
|
cp /boot/cmdline.txt /boot/cmdline.bak
|
||||||
sed -i 's/console=ttyAMA0,[0-9]* kgdboc=ttyAMA0,[0-9]* //g' /boot/cmdline.txt
|
sed -i 's/console=ttyAMA0,[0-9]* kgdboc=ttyAMA0,[0-9]* //g' /boot/cmdline.txt
|
||||||
fi
|
fi
|
||||||
|
if [ "$(grep serial0 /boot/cmdline.txt)" != "" ] ; then
|
||||||
|
cp /boot/cmdline.txt /boot/cmdline.bak
|
||||||
|
sed -i 's/console=serial0,[0-9]* kgdboc=serial0,[0-9]* //g' /boot/cmdline.txt
|
||||||
|
fi
|
||||||
#
|
#
|
||||||
# Make sure UART is enabled
|
# Make sure UART is enabled
|
||||||
#
|
#
|
||||||
if [ "$(grep enable_uart /boot/config.txt)" = "" ] ; then
|
if [ "$(grep enable_uart /boot/config.txt)" = "" ] ; then
|
||||||
echo "enable_uart=1" >> /etc/apt/sources.list
|
echo "enable_uart=1" >> /boot/config.txt
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
# Disable getty on built-in serial port.
|
# Disable getty on built-in serial port.
|
||||||
@ -51,7 +55,7 @@ case "$1" in
|
|||||||
# Add plymouth splash screen
|
# Add plymouth splash screen
|
||||||
#
|
#
|
||||||
if [ -d /usr/share/plymouth/themes ] ; then
|
if [ -d /usr/share/plymouth/themes ] ; then
|
||||||
cp -R /usr/share/a2pi/plymouth /usr/share/plymouth
|
cp -R /usr/share/a2pi/plymouth/* /usr/share/plymouth
|
||||||
plymouth-set-default-theme a2pi
|
plymouth-set-default-theme a2pi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user