This is a fork of the safe shutdown script for x730 from Geekworm. This has been modified to be compatible with x735 on Ubuntu 20.04. The main difference is this script uses systemd in favor of rc.local.
One-liner:
wget https://raw.githubusercontent.com/tomreeb/x735-script/master/x735.sh | xargs sudo bash
Even though it's easy, you should not run that command above. Instead, download the script and review it before executing it:
wget https://raw.githubusercontent.com/tomreeb/x735-script/master/x735.sh
sudo chmod +x x735.sh
sudo ./x735.sh
When the install is finished, reload your bash session.
$ sudo shutdown
x735 Shutting down...