Explorar o código

fix rtsp server wlan0 password

Alfonso Gamboa %!s(int64=4) %!d(string=hai) anos
pai
achega
f87d4d3108
Modificáronse 2 ficheiros con 8 adicións e 2 borrados
  1. 1 0
      README.md
  2. 7 2
      SD_ROOT/wz_mini/run_mmc.sh

+ 1 - 0
README.md

@@ -201,6 +201,7 @@ Huge credit to @mnakada for his libcallback library: [https://github.com/mnakada
 
 
 ## Latest Updates
 ## Latest Updates
 
 
+* 05-09-22:  fix bug in run_mmc.sh that did not store the wlan mac when using a wired usb or ethernet connection for the rtsp server
 * 05-09-22:  update libcallback sources with patch to fix rtsp across multiple firmware versions for all devices (v3/panv2/db)
 * 05-09-22:  update libcallback sources with patch to fix rtsp across multiple firmware versions for all devices (v3/panv2/db)
 * 05-08-22:  update libcallback sources with patch to enable pan v2 rtsp functionality.
 * 05-08-22:  update libcallback sources with patch to enable pan v2 rtsp functionality.
 * 05-08-22:  Include iptables and NFSv4 kernel modules, enable swap ON by default.
 * 05-08-22:  Include iptables and NFSv4 kernel modules, enable swap ON by default.

+ 7 - 2
SD_ROOT/wz_mini/run_mmc.sh

@@ -79,16 +79,21 @@ wait_sdroot() {
 
 
 }
 }
 
 
+store_mac() {
+	echo "store original mac"
+	cat /sys/class/net/wlan0/address | tr '[:lower:]' '[:upper:]' > /opt/wz_mini/tmp/wlan0_mac
+}
+
 wait_wlan() {
 wait_wlan() {
 ##Check if the driver has been loaded for the onboard wlan0, store the MAC.
 ##Check if the driver has been loaded for the onboard wlan0, store the MAC.
     while true
     while true
     do
     do
         if  ifconfig wlan0 | grep "inet addr";
         if  ifconfig wlan0 | grep "inet addr";
         then
         then
-	echo "store original mac"
-	cat /sys/class/net/wlan0/address | tr '[:lower:]' '[:upper:]' > /opt/wz_mini/tmp/wlan0_mac
+	store_mac
         break
         break
 	elif [[ "$ENABLE_USB_ETH" == "true" || "$ENABLE_USB_DIRECT" == "true" ]]; then
 	elif [[ "$ENABLE_USB_ETH" == "true" || "$ENABLE_USB_DIRECT" == "true" ]]; then
+	store_mac
 	break
 	break
         fi
         fi
         echo " wlan0 not ready yet..."
         echo " wlan0 not ready yet..."