Adding main System raw image
This commit is contained in:
1 parent
42fb726c70
commit
3a0d3615e9
7 files changed
+60
-1
No files matched your search
@@ -196,7 +196,7 @@ pi@RIP2:~ $ sudo a2ensite 001-RIP-webApp.conf
|
||||
pi@RIP2:~ $ sudo apachectl configtest
|
||||
pi@RIP2:~ $ sudo systemctl reload apache2.service
|
||||
pi@RIP2:~ $ sudo cp ./php.ini /etc/php/[php-version]/apache2/php.ini
|
||||
pi@RIP2:~ $ sudo cp ./010_rip-reboot /etc/sudoers.d/010_rip-reboot
|
||||
pi@RIP2:~ $ sudo cp ./010_rip-reboot /etc/sudoers.d/010_rip-rebootc
|
||||
pi@RIP2:~ $ sudo reboot
|
||||
```
|
||||
|
||||
|
||||
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
@@ -0,0 +1,29 @@
|
||||
##### hostapd configuration file ##############################################
|
||||
# location /etc/hostapd/hostapd.conf
|
||||
#####
|
||||
|
||||
interface=wlan0
|
||||
driver=nl80211
|
||||
hw_mode=g
|
||||
|
||||
##### channel selection here
|
||||
channel=6
|
||||
#####
|
||||
|
||||
wmm_enabled=0
|
||||
macaddr_acl=0
|
||||
auth_algs=1
|
||||
ignore_broadcast_ssid=0
|
||||
wpa=2
|
||||
wpa_key_mgmt=WPA-PSK
|
||||
wpa_pairwise=TKIP
|
||||
rsn_pairwise=CCMP
|
||||
|
||||
##### uncomment the good RIP SSID
|
||||
ssid=RIP_1
|
||||
#ssid=RIP_2
|
||||
#ssid=RIP_3
|
||||
#ssid=RIP_4
|
||||
#####
|
||||
|
||||
wpa_passphrase=azertMAX
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import RPi.GPIO as GPIO
|
||||
import time
|
||||
|
||||
def click(self):
|
||||
print('event detected')
|
||||
|
||||
in_pin = 4
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
GPIO.setup(in_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
||||
GPIO.add_event_detect(in_pin, GPIO.FALLING, callback=click,
|
||||
bouncetime=100)
|
||||
|
||||
while True:
|
||||
time.sleep(0.2)
|
||||
|
||||
|
||||
Reference in new issue
Block a user