This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
LOG_PATH="/home/ubuntu/speedtest/speedtest.log" | |
if result=$(/usr/bin/speedtest --simple); then | |
parsed_result=$(printf "${result}\"" | sed ':a;N;$!ba;s/\n/" /g' | sed 's/: /="/g') | |
printf "[$(date)] ${parsed_result}\n" >> "${LOG_PATH}" | |
else | |
printf "[$(date)] error\n" >> "${LOG_PATH}" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install RTL8723DE Wifi Driver in Ubuntu | |
# Subhrodip Mohanta - 18 July, 2019. | |
sudo apt install git build-essential dkms | |
cd /tmp | |
git clone -b extended https://github.com/lwfinger/rtlwifi_new.git | |
sudo dkms add ./rtlwifi_new | |
sudo dkms install rtlwifi-new/0.6 | |
sudo modprobe -r rtl8723de && sudo modprobe rtl8723de |