kopia lustrzana https://github.com/F5OEO/rpidatv
Change way of autostart like raspi-config
rodzic
b43ce0959e
commit
c80cea2d85
|
@ -159,10 +159,11 @@ then
|
||||||
cp configs/rpidatvconfig.fr rpidatvconfig.txt
|
cp configs/rpidatvconfig.fr rpidatvconfig.txt
|
||||||
cd /home/pi
|
cd /home/pi
|
||||||
echo "Autostart install"
|
echo "Autostart install"
|
||||||
sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/
|
#get from http://raspberrypi.stackexchange.com/questions/38025/disable-console-autologin-on-raspbian-jessie
|
||||||
sudo cp "/home/pi/rpidatv/scripts/configs/autologin.conf" /etc/systemd/system/getty@tty1.service.d/
|
sudo ln -fs /etc/systemd/system/autologin@.service \
|
||||||
sudo systemctl enable getty@tty1.service
|
/etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||||
cp "/home/pi/rpidatv/scripts/configs/console_tx.bashrc" /home/pi/.bashrc;;
|
|
||||||
|
cp "/home/pi/rpidatv/scripts/configs/console_tx.bashrc" /home/pi/.bashrc
|
||||||
echo "Completed French Install Auto"
|
echo "Completed French Install Auto"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
#FOR Jessie
|
#FOR Jessie
|
||||||
# Whiptail and /etc/rc.local is not running properly !!!!
|
# Whiptail and /etc/rc.local is not running properly !!!!
|
||||||
# Use systemd method
|
# Use systemd method
|
||||||
sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/
|
#sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/
|
||||||
sudo cp ./autologin.conf /etc/systemd/system/getty@tty1.service.d/
|
#sudo cp ./autologin.conf /etc/systemd/system/getty@tty1.service.d/
|
||||||
sudo systemctl enable getty@tty1.service
|
#sudo systemctl enable getty@tty1.service
|
||||||
|
|
||||||
|
ln -fs /etc/systemd/system/autologin@.service \
|
||||||
|
/etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||||
|
|
||||||
cp install_bashrc /home/pi/.bashrc
|
cp install_bashrc /home/pi/.bashrc
|
||||||
|
|
|
@ -732,14 +732,12 @@ do_autostart_setup()
|
||||||
sudo rm /etc/systemd/system/getty@tty1.service.d/autologin.conf /dev/null 2>/dev/null
|
sudo rm /etc/systemd/system/getty@tty1.service.d/autologin.conf /dev/null 2>/dev/null
|
||||||
cp $PATHCONFIGS"/button.bashrc" /home/pi/.bashrc;;
|
cp $PATHCONFIGS"/button.bashrc" /home/pi/.bashrc;;
|
||||||
TX_boot)
|
TX_boot)
|
||||||
sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/
|
sudo ln -fs /etc/systemd/system/autologin@.service \
|
||||||
sudo cp $PATHCONFIGS"/autologin.conf" /etc/systemd/system/getty@tty1.service.d/
|
/etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||||
sudo systemctl enable getty@tty1.service
|
|
||||||
cp $PATHCONFIGS"/console_tx.bashrc" /home/pi/.bashrc;;
|
cp $PATHCONFIGS"/console_tx.bashrc" /home/pi/.bashrc;;
|
||||||
Display_boot)
|
Display_boot)
|
||||||
sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/
|
sudo ln -fs /etc/systemd/system/autologin@.service \
|
||||||
sudo cp $PATHCONFIGS"/autologin.conf" /etc/systemd/system/getty@tty1.service.d/
|
/etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||||
sudo systemctl enable getty@tty1.service
|
|
||||||
MODE_DISPLAY=$(get_config_var display $CONFIGFILE)
|
MODE_DISPLAY=$(get_config_var display $CONFIGFILE)
|
||||||
case "$MODE_DISPLAY" in
|
case "$MODE_DISPLAY" in
|
||||||
Waveshare)
|
Waveshare)
|
||||||
|
@ -748,9 +746,8 @@ do_autostart_setup()
|
||||||
cp $PATHCONFIGS"/display.bashrc" /home/pi/.bashrc;; #>/dev/null 2>/dev/null;;
|
cp $PATHCONFIGS"/display.bashrc" /home/pi/.bashrc;; #>/dev/null 2>/dev/null;;
|
||||||
esac;;
|
esac;;
|
||||||
Button_boot)
|
Button_boot)
|
||||||
sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/
|
sudo ln -fs /etc/systemd/system/autologin@.service \
|
||||||
sudo cp $PATHCONFIGS"/autologin.conf" /etc/systemd/system/getty@tty1.service.d/
|
/etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||||
sudo systemctl enable getty@tty1.service
|
|
||||||
cp $PATHCONFIGS"/button.bashrc" /home/pi/.bashrc;;
|
cp $PATHCONFIGS"/button.bashrc" /home/pi/.bashrc;;
|
||||||
esac
|
esac
|
||||||
set_config_var startup "$chstartup" $CONFIGFILE
|
set_config_var startup "$chstartup" $CONFIGFILE
|
||||||
|
|
Ładowanie…
Reference in New Issue