Mechouate / Hospitracking

0 stars 0 forks source link

Wlan access point !!! #105

Open Mechouate opened 5 years ago

Mechouate commented 5 years ago

Commande :

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Mechouate commented 5 years ago

/etc/systemd/system/neu_pi.service

Mechouate commented 5 years ago

neu_pi.service

[Unit] Description=Mac der pi beim neu start zu server schicken Wants=network-online.target After=network.target network-online.target

[Service] Type=simple ExecStart=/bin/bash /home/pi/neu_pi.sh start Restart=on-failure RestartSec=15 User=pi

[Install] WantedBy=multi-user.target

Mechouate commented 5 years ago

echo "beim starten mac adresse an server schicken und direkt mit dem scan anfangen" sudo systemctl daemon-reload sudo systemctl start scan_autostart.service sudo systemctl enable scan_autostart.service sudo systemctl status scan_autostart.service

Mechouate commented 5 years ago

scan_autostart.service

[Unit] Description=scan Autostart Wants=network-online.target After=network.target network-online.target

[Service] Type=simple WorkingDirectory=/home/pi ExecStart=/bin/bash /home/pi/adam.sh start Restart=on-failure User=pi

[Install] WantedBy=multi-user.target

Mechouate commented 5 years ago

network={ ssid="hospicall_WLAN_02" psk="1234567890B" key_mgmt=WPA-PSK }

Mechouate commented 5 years ago

7C:2F:80:C2:6E:4F Gigaset keeper

Mechouate commented 5 years ago

scp ada2.sh pi@192.168.1.103:/home/pi