Update restart lancher
This commit is contained in:
parent
9db469895c
commit
72637ea1c2
|
@ -5,6 +5,8 @@ unlink /etc/localtime
|
||||||
ln -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
|
ln -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
|
||||||
#*************cap quyen****************************
|
#*************cap quyen****************************
|
||||||
echo "cap quyen"
|
echo "cap quyen"
|
||||||
|
chown root:root /etc/sudoers
|
||||||
|
export DISPLAY =:0
|
||||||
sudo chmod +x /root/monitor/cache/clearcache.sh
|
sudo chmod +x /root/monitor/cache/clearcache.sh
|
||||||
sudo chmod +x /root/monitor/check/Check_engine
|
sudo chmod +x /root/monitor/check/Check_engine
|
||||||
sudo chmod +x /root/monitor/launcher/S905X_BI
|
sudo chmod +x /root/monitor/launcher/S905X_BI
|
||||||
|
@ -85,10 +87,24 @@ sudo chmod +x /root/monitor/setup/install_box/install_box.sh
|
||||||
sudo /root/monitor/setup/install_box/install_box.sh
|
sudo /root/monitor/setup/install_box/install_box.sh
|
||||||
#
|
#
|
||||||
#*************Copy key ssh***************
|
#*************Copy key ssh***************
|
||||||
|
echo "copy key"
|
||||||
sudo /root/monitor/setup/key.sh
|
sudo /root/monitor/setup/key.sh
|
||||||
#
|
#
|
||||||
#*************setup schedule crontab**********
|
#*************setup schedule crontab**********
|
||||||
|
echo "setup schedule crontab"
|
||||||
echo "33 3 * * * sudo /root/monitor/cache/clearcache.sh" >> /var/spool/cron/crontabs/root
|
echo "33 3 * * * sudo /root/monitor/cache/clearcache.sh" >> /var/spool/cron/crontabs/root
|
||||||
|
#
|
||||||
|
#*************setup autologin***************
|
||||||
|
echo "setup autologin"
|
||||||
|
os_version=$(cat /etc/issue |grep "Ubuntu 18.04")
|
||||||
|
if [ -n "$os_version" ]; then
|
||||||
|
sudo apt-get install -y rng-tools
|
||||||
|
cd /etc/lightdm/lightdm.conf.d
|
||||||
|
echo "autologin-user=root
|
||||||
|
autologin-user-timeout=0
|
||||||
|
" >> 11-armbian.conf
|
||||||
|
fi
|
||||||
|
#
|
||||||
sudo apt-get -y update
|
sudo apt-get -y update
|
||||||
#
|
#
|
||||||
reboot
|
reboot
|
||||||
|
|
Loading…
Reference in New Issue
Block a user