]> gitweb.pimeys.fr Git - scripts-20-100.git/blob - wake.sh
Installer aussi tree et curl
[scripts-20-100.git] / wake.sh
1 #!/bin/bash
2
3 # Pour wakeonlan les machines des salles de TP Réseaux de l'IUT
4 # Et puis cabal, tant qu'on y est
5
6 case "$1" in
7 e) MACS="00:1a:a0:d2:17:bf 00:15:e9:b8:ac:58 00:1a:a0:d2:49:81" ;;
8 g) MACS="34:17:eb:d1:4e:6d 34:17:eb:d1:4e:93 34:17:eb:d1:4e:97 34:17:eb:d1:4e:a9 34:17:eb:d1:4f:fc 34:17:eb:d1:52:29 34:17:eb:d1:52:3c 34:17:eb:d1:52:53 34:17:eb:d1:52:fd 34:17:eb:d1:53:13 34:17:eb:d1:54:0e 34:17:eb:d1:54:33 34:17:eb:d1:54:b1 34:17:eb:d1:55:5f 34:17:eb:d1:56:4e 34:17:eb:d1:56:62 34:17:eb:d1:56:6f 34:17:eb:d1:56:8c 34:17:eb:d1:56:9d 34:17:eb:d1:56:a3 34:17:eb:d1:ce:4a 34:17:eb:d1:ce:61 34:17:eb:d1:cf:0f 34:17:eb:d1:cf:29 34:17:eb:d1:cf:35 34:17:eb:d1:cf:3c 34:17:eb:d1:d0:d8 34:17:eb:d1:d0:df 34:17:eb:d1:d0:f9 34:17:eb:d1:d1:15 34:17:eb:d1:d1:19 34:17:eb:d1:d1:44 34:17:eb:d1:d8:f5";;
9 # Il manque h04, port 22 refused au moment de l'exam réseau S2 (19/06/2015)
10 h) MACS="00:10:18:33:c4:9f 00:10:18:33:c4:bd 18:03:73:24:17:35 00:10:18:33:bd:3b 00:10:18:33:bd:3c 00:10:18:33:bd:3a 00:10:18:33:c4:b5 00:10:18:33:c4:a5 00:10:18:33:bd:51 00:10:18:33:bd:3e 00:10:18:33:c4:b1 00:10:18:33:bd:5d 00:10:18:33:bd:40 00:10:18:33:c4:b6 00:10:18:33:c4:a4 00:10:18:33:c4:b4" ;;
11 k) MACS="c8:1f:66:b4:da:60 c8:1f:66:b4:da:6c c8:1f:66:b5:a2:bc c8:1f:66:b4:da:68 c8:1f:66:b5:97:40 c8:1f:66:b5:43:eb c8:1f:66:b5:44:07 c8:1f:66:b4:da:64 c8:1f:66:b4:d9:c1 c8:1f:66:b5:43:e3 c8:1f:66:b5:a4:0e c8:1f:66:b5:42:d2 c8:1f:66:b4:da:6b c8:1f:66:b5:44:25 c8:1f:66:b4:da:c4 c8:1f:66:b5:a5:87" ;;
12 s) MACS="18:03:73:3b:aa:7f 18:03:73:3b:bd:90 18:03:73:3b:a8:72 18:03:73:3b:b4:8b 18:03:73:3b:bc:d7 18:03:73:3b:b8:4c 18:03:73:3b:b0:ff 18:03:73:3b:bd:2c 18:03:73:3b:c1:e2 18:03:73:3b:c1:b1 18:03:73:3b:c1:c2 18:03:73:3b:c1:00 18:03:73:3b:bd:6d b8:ca:3a:ac:3d:ae 18:03:73:3b:ac:e9 18:03:73:3b:b3:87" ;;
13 # Il manque t04, port 22 refused au moment de l'exam réseau S2 (19/06/2015)
14 t) MACS="18:03:73:24:02:82 18:03:73:24:25:46 18:03:73:24:27:6a 18:03:73:24:25:04 18:03:73:24:20:64 18:03:73:24:24:da 18:03:73:24:0d:6b 18:03:73:24:20:f9 18:03:73:24:20:d8 18:03:73:24:13:5e 18:03:73:24:25:72 18:03:73:24:24:bc 18:03:73:24:24:b6 18:03:73:24:25:57 18:03:73:24:1b:90" ;;
15 cabal) MACS="c8:60:00:01:d5:4e" ;;
16 *) echo "Room unknown" ; exit 1 ;;
17 esac
18
19 sudo wakeonlan $MACS