Add set -eu to all files
This commit is contained in:
parent
444c91beea
commit
9e600a56a7
2
LCD-hdmi
2
LCD-hdmi
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
dev=`grep -rn "Option" /usr/share/X11/xorg.conf.d/99-fbturbo.conf | grep "fbdev" |awk -F\" '{printf $4}'`
|
||||
if test "$dev" = "/dev/fb0";then
|
||||
echo "The system is already output for HDMI and does not need to be set up any more"
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
sudo cp ./usr/mhs24-overlay.dtb /boot/overlays/
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
if [ -f /etc/X11/xorg.conf.d/40-libinput.conf ]; then
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo mkdir -p /etc/X11/xorg.conf.d
|
||||
sudo cp ./usr/mis35-overlay.dtb /boot/overlays/
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
hw_version=`tr -d '\0' < /proc/device-tree/model`
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
|
||||
sudo cp -rf ./boot/config-35-480X320.txt /boot/config.txt
|
||||
if [ -b /dev/mmcblk0p7 ]; then
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo cp -rf ./boot/config-35DPI.txt /boot/config.txt
|
||||
#sudo cp ./usr/bcm2709-rpi-2-b.dtb /boot/
|
||||
#sudo cp ./usr/bcm2710-rpi-3-b.dtb /boot/
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
sudo ./system_backup.sh
|
||||
|
||||
root_dev=`grep -oPr "root=[^\s]*" /boot/cmdline.txt | awk -F= '{printf $NF}'`
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
cur_dir=`pwd`
|
||||
if [ ! -f $cur_dir/.have_installed ]; then
|
||||
echo "Please install the LCD driver first"
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
if [ ! -d "./.system_backup" ]; then
|
||||
sudo mkdir ./.system_backup
|
||||
fi
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
#Just finished the system, no need to restore
|
||||
if [ ! -d "./.system_backup" ]; then
|
||||
echo "The system is the original version and does not need to be restored"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user