echo and cat commands can't be used with sudo to clear the contents of the lsb-release file, althought can be used when I switch to root. All I want to do is to clear all text and add Ubuntu's data:
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
So can someone pretty please help me with this problem? I am sure that's an easy thing to do with sed but I'm probably too stupid to find out how...
Also, is there a way to pause the script until after the Intel drivers are installed, the utility's window is closed and the original lsb-release file restored?
This is what I have so far and what I'm trying to achieve:
Code: Select all
#Intel Graphics Driver update utility
echo "deb https://download.01.org/gfx/ubuntu/14.04/main trusty main" | sudo tee /etc/apt/sources.list.d/intellinuxgraphics.list
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | sudo apt-key add -
sudo apt-get update && sudo apt-get install intel-linux-graphics-installer -y
sudo cp /etc/lsb-release /etc/lsb-release.bak
????? <--- alter contents of /etc/lsb-release
sudo intel-linux-graphics-installer <--- Pause script, open window & install drivers
sudo cp /etc/lsb-release.bak /etc/lsb-release
...Script continues with other stuff...