diff --git a/init.sh b/init.sh index 04be501..d35cf61 100755 --- a/init.sh +++ b/init.sh @@ -1,8 +1,14 @@ #!/bin/bash trap "killall background" EXIT -git clone -b master git@github.com:vanhoefm/modwifi.git modwifi & -git clone -b research git@github.com:vanhoefm/modwifi-linux.git linux & -git clone -b research git@github.com:vanhoefm/modwifi-ath9k-htc.git ath9k-htc & -git clone -b research git@github.com:vanhoefm/modwifi-backports.git backports & -git clone -b master git@github.com:vanhoefm/modwifi-tools.git tools & + +PROTOCOL="https://github.com/" +if [[ $# -eq 1 ]]; then + PROTOCOL="git@github.com:" +fi + +git clone -b master ${PROTOCOL}vanhoefm/modwifi.git modwifi & +git clone -b research ${PROTOCOL}vanhoefm/modwifi-linux.git linux & +git clone -b research ${PROTOCOL}vanhoefm/modwifi-ath9k-htc.git ath9k-htc & +git clone -b research ${PROTOCOL}vanhoefm/modwifi-backports.git backports & +git clone -b master ${PROTOCOL}vanhoefm/modwifi-tools.git tools & wait