forked from William/kvs-linuxmint-dloadx
Fixes
This commit is contained in:
parent
4d74ec3a49
commit
bc49322f22
25
install.sh
25
install.sh
@ -8,33 +8,28 @@ if [[ $EUID -ne 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apt update && apt -y install git wine setserial &&
|
apt update && apt install -y git wine setserial tlp
|
||||||
cd /opt/ &&
|
systemctl enable tlp --now
|
||||||
git clone $GIT_REPO &&
|
cd /opt/
|
||||||
cd $GIT_NAME &&
|
git clone $GIT_REPO
|
||||||
|
cd $GIT_NAME
|
||||||
|
|
||||||
|
|
||||||
|
adduser $USERNAME dialout
|
||||||
adduser $USERNAME dialout &&
|
|
||||||
echo "[Unit]
|
echo "[Unit]
|
||||||
Description=Wine Serial Fix
|
Description=Wine Serial Fix
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=bash /opt/$GIT_NAME/wine_serial_fix.sh $USERNAME
|
ExecStart=bash /opt/$GIT_NAME/wine_serial_fix.sh $USERNAME
|
||||||
TimeoutStartSec=0
|
TimeoutStartSec=0
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical.target" > "/etc/systemd/system/wine-serial-fix.service" &&
|
WantedBy=graphical.target" > "/etc/systemd/system/wine-serial-fix.service"
|
||||||
systemctl daemon-reload &&
|
systemctl daemon-reload
|
||||||
systemctl enable wine-serial-fix.service --now &&
|
systemctl enable wine-serial-fix.service --now
|
||||||
|
|
||||||
|
|
||||||
|
sudo -H -u $USERNAME bash -c "cd /opt/$GIT_NAME && wine DLOADX*.exe"
|
||||||
su $USERNAME &&
|
|
||||||
wine DLOADX*.exe
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "\e[1;32mFerdig. Logg ut og inn av økten eller start datamaskinen på nytt.\e[0m"
|
echo -e "\e[1;32mFerdig. Logg ut og inn av økten eller start datamaskinen på nytt.\e[0m"
|
@ -21,7 +21,8 @@ function doTheThang
|
|||||||
|
|
||||||
if [ ! -z "$TTY" ]; then
|
if [ ! -z "$TTY" ]; then
|
||||||
echo -e "\e[1;32mUsing serial device: $TTY\e[0m"
|
echo -e "\e[1;32mUsing serial device: $TTY\e[0m"
|
||||||
ln -s $TTY /home/$USERNAME/.wine/dosdevices/com1 &&
|
ln -sfn $TTY /home/$USERNAME/.wine/dosdevices/com1 &&
|
||||||
|
chown $USERNAME /home/$USERNAME/.wine/dosdevices/com1 &&
|
||||||
ls -l /home/$USERNAME/.wine/dosdevices/ | grep $TTY
|
ls -l /home/$USERNAME/.wine/dosdevices/ | grep $TTY
|
||||||
else
|
else
|
||||||
echo -e "\e[1;31mNo serial device\e[0m"
|
echo -e "\e[1;31mNo serial device\e[0m"
|
||||||
|
Loading…
Reference in New Issue
Block a user