Skip to content

Commit

Permalink
Add gitignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
tgm4883 committed Feb 9, 2019
1 parent 4b5d84e commit 91d37ce
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setup.conf
44 changes: 34 additions & 10 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ else
echo "Not touching libwacom\n"
fi


if [ -z "${removexorg}" ]; then
read -rp "Do you want to remove the example intel xorg config? (type yes or no) " removexorg;echo
fi
Expand All @@ -107,9 +106,20 @@ if [ "$removexorg" = "yes" ]; then
echo "Removing the example intel xorg config...\n"
rm /etc/X11/xorg.conf.d/20-intel_example.conf
else
echo "Not touching example intel xorg config\n"
echo "Not touching example intel xorg config (/etc/X11/xorg.conf.d/20-intel_example.conf)\n"
fi

if [ -z "${removepulse}" ]; then
read -rp "Do you want to remove the example pulse audio config files? (type yes or no) " removepulse;echo
fi

if [ "$removepulse" = "yes" ]; then
echo "Removing the example pulse audio config files..."
rm /etc/pulse/daemon_example.conf
rm /etc/pulse/default_example.pa
else
echo "Not touching example pulse audio config files (/etc/pulse/*_example.*)"
fi

if [ -z "${iptsfirmware}" ]; then
read -rp "Do you want to install the IPTS and i915 firmware? (type yes or no) " iptsfirmware;echo
Expand Down Expand Up @@ -219,6 +229,13 @@ if [ "$iptsfirmware" = "yes" ]; then
echo "\nInstalling ath10k firmware for Surface Go...\n"
mkdir -p /lib/firmware/ath10k
unzip -o firmware/ath10k_firmware.zip -d /lib/firmware/ath10k/

if [ ! -f "/etc/init.d/surfacego-touchscreen" ]; then
echo "\nPatching power control for Surface Go touchscreen...\n"
echo "echo \"on\" > /sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/power/control" > /etc/init.d/surfacego-touchscreen
chmod 755 /etc/init.d/surfacego-touchscreen
update-rc.d surfacego-touchscreen defaults
fi
fi
else
echo "Not touching IPTS and i915 firmware\n"
Expand All @@ -238,6 +255,19 @@ else
fi


if [ -z "${mwlwifi}" ]; then
read -rp "Do you want to install the mwlwifi firmware? (type yes or no) " mwlwifi;echo
fi

if [ "$mwlwifi" = "yes" ]; then
echo "Installing mwlwifi firmware...\n"
mkdir -p /lib/firmware/mwlwifi/
unzip -o firmware/mwlwifi_firmware.zip -d /lib/firmware/mwlwifi/
else
echo "Not touching mwlwifi firmware\n"
fi


if [ -z "${uselocaltime}" ]; then
read -rp "Do you want to set your clock to local time instead of UTC? This fixes issues when dual booting with Windows. (type yes or no) " uselocaltime;echo
fi
Expand Down Expand Up @@ -306,14 +336,8 @@ if [ "$setupconfig" = "no" ]; then
echo "marvellfirmware=$marvellfirmware" >> setup.conf
echo "uselocaltime=$uselocaltime" >> setup.conf
echo "autoinstallkernel=$autoinstallkernel" >> setup.conf
echo "sleepexecutable=$sleepexecutable" >> setup.conf
echo "usehibernate=$usehibernate" >> setup.conf
echo "uselibwacom=$uselibwacom" >> setup.conf
echo "removexorg=$removexorg" >> setup.conf
echo "iptsfirmware=$iptsfirmware" >> setup.conf
echo "marvellfirmware=$marvellfirmware" >> setup.conf
echo "uselocaltime=$uselocaltime" >> setup.conf
echo "autoinstallkernel=$autoinstallkernel" >> setup.conf
echo "removepulse=$removepulse" >> setup.conf
echo "mwlwifi=$mwlwifi" >> setup.conf
else
echo "Not saving answers.\n"
fi
Expand Down

0 comments on commit 91d37ce

Please sign in to comment.