0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

色違いeduroamゲット! for Linux

0
Posted at

簡単で
す!

#!/usr/bin/env bash

read -s -p "Enter AXIOLE pass: " EDU_PASS
echo
read -s -p "Enter Student ID: " EDU_ID
echo
read -s -p "Enter Wi-Fi interface name: " EDU_IFNAME
echo

# 設定する SSID のリスト
SSIDS=(eduroam eduroam-2)

for ssid in "${SSIDS[@]}"; do
    nmcli con add type wifi con-name "$ssid" ifname "$EDU_IFNAME" ssid "$ssid" \
      802-1x.eap peap \
      802-1x.identity "$EDU_ID@kisarazu.ac.jp" \
      802-1x.password "$EDU_PASS" \
      802-1x.phase2-auth "mschapv2"
done

unset EDU_PASS EDU_ID EDU_IFNAME

結果
eduroamゲット!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?