]> ###2019-06-23 - Add timeout setting, Thanks Squid ###2019-04-06a - Prevent premature closing of download box ###2019-04-06 - Minor formatting changes ###2019-02-09 - Release ]]> # Remove old 'source' files rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null|grep -v '&version;') rm -rf /tmp/mediabuild https://raw.github.com/&github;/master/archive/&name;-&version;.txz &md5; if [ -d /dev/dri ]; then chown -R nobody:users /dev/dri chmod -R 777 /dev/dri fi # Parse Nvidia Details if [ -f /tmp/nvidia ]; then rm /tmp/nvidia fi mkdir -p /tmp/nvidia/ nvidia-smi --query-gpu=gpu_name,gpu_bus_id,gpu_uuid --format=csv,noheader | sed -e s/00000000://g | sed 's/\,\ /\n/g' > /tmp/nvidia/nvidia echo "" echo "----------------------------------------------------" echo " &name; has been installed." echo " LinuxServer.io" echo " Version: &version;" echo "----------------------------------------------------" echo "" removepkg &name;-&version; rm -rf &plugdir; rm -rf /boot/config/plugins/&name; rm -rf /tmp/mediabuild