Open Mechouate opened 5 years ago
/etc/systemd/system/neu_pi.service
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
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
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
network={ ssid="hospicall_WLAN_02" psk="1234567890B" key_mgmt=WPA-PSK }
7C:2F:80:C2:6E:4F Gigaset keeper
scp ada2.sh pi@192.168.1.103:/home/pi
Commande :
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf