diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-05-28 14:42:02 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-05-28 21:30:55 +0300 |
commit | c2096bb5159f3b0d188653cf17cd771725ae7e1a (patch) | |
tree | 4f0f76e01f07711a2d1312baf84341973d6d03cf /util/wsl_install.sh | |
parent | aa26464480c3080ed935d49cce3f4b9b33c9c05f (diff) | |
download | qmk_firmware-c2096bb5159f3b0d188653cf17cd771725ae7e1a.tar.gz qmk_firmware-c2096bb5159f3b0d188653cf17cd771725ae7e1a.zip |
Add driver installation
Diffstat (limited to 'util/wsl_install.sh')
-rw-r--r-- | util/wsl_install.sh | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/util/wsl_install.sh b/util/wsl_install.sh index c3aeba6d6e..9df715b813 100644 --- a/util/wsl_install.sh +++ b/util/wsl_install.sh @@ -1,6 +1,6 @@ #!/bin/bash -download_dir = wsl_downloaded +download_dir=wsl_downloaded function install_utils { rm -f -r $download_dir @@ -33,7 +33,11 @@ function install_utils { popd > /dev/null } -function make_environment { +function install_drivers { + pushd $download_dir + cp ../drivers.txt . + cmd.exe /C qmk_driver_installer.exe $1 $2 ../drivers.txt + popd > /dev/null } echo "Installing dependencies (p7zip-full, wget)" @@ -54,5 +58,22 @@ pushd "$dir" #install_utils +while true; do + echo + echo "Which USB drivers do you want to install?" + echo "(A)all - All supported drivers will be installed" + echo "(C)onnected - Only drivers for connected keyboards (in bootloader/flashing mode) will be installed" + echo "(F)force - Like all, but will also override existing drivers for connected keyboards" + echo "(N)one - No drivers will be installed, flashing your keyboard will most likely not work" + read -p "(A/C/F/N)? " res + case $res in + [Aa]* ) install_drivers --all; break;; + [Cc]* ) install_drivers; break;; + [Ff]* ) install_drivers --all --force; break;; + [Nn]* ) break;; + * ) echo "Invalid answer";; + esac +done + popd > /dev/null |