Skip to content

Commit

Permalink
overlay-files: Refactor wlan0 ifup Networking Configuration (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtxaspec authored Sep 22, 2023
1 parent 6078cf7 commit d1d5d14
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions general/overlay/etc/network/interfaces.d/wlan0
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
auto wlan0
iface wlan0 inet dhcp
post-up wpa_passphrase "$(fw_printenv -n wlanssid || echo OpenIPC)" "$(fw_printenv -n wlanpass || echo OpenIPC12345)" > /tmp/wpa_supplicant.conf
post-up sed -i '2i \\tscan_ssid=1' /tmp/wpa_supplicant.conf
post-up wpa_supplicant -B -i wlan0 -D nl80211,wext -c /tmp/wpa_supplicant.conf
pre-up wpa_passphrase "$(fw_printenv -n wlanssid || echo OpenIPC)" "$(fw_printenv -n wlanpass || echo OpenIPC12345)" > /tmp/wpa_supplicant.conf
pre-up sed -i '2i \\tscan_ssid=1' /tmp/wpa_supplicant.conf
pre-up wpa_supplicant -D nl80211,wext -i wlan0 -c /tmp/wpa_supplicant.conf -B
post-down killall -q wpa_supplicant
6 changes: 3 additions & 3 deletions general/overlay/etc/wireless/interfaces/wlan0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
auto wlan0
iface wlan0 inet dhcp
post-up wpa_passphrase "$(fw_printenv -n wlanssid || echo OpenIPC)" "$(fw_printenv -n wlanpass || echo OpenIPC12345)" > /tmp/wpa_supplicant.conf
post-up sed -i '2i \\tscan_ssid=1' /tmp/wpa_supplicant.conf
post-up wpa_supplicant -B -i wlan0 -D nl80211,wext -c /tmp/wpa_supplicant.conf
pre-up wpa_passphrase "$(fw_printenv -n wlanssid || echo OpenIPC)" "$(fw_printenv -n wlanpass || echo OpenIPC12345)" > /tmp/wpa_supplicant.conf
pre-up sed -i '2i \\tscan_ssid=1' /tmp/wpa_supplicant.conf
pre-up wpa_supplicant -D nl80211,wext -i wlan0 -c /tmp/wpa_supplicant.conf -B
post-down killall -q wpa_supplicant
2 changes: 1 addition & 1 deletion general/package/busybox/busybox.config
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ CONFIG_UDHCP_DEBUG=0
CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80
CONFIG_FEATURE_UDHCP_RFC3397=y
CONFIG_FEATURE_UDHCP_8021Q=y
CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-x hostname:$(hostname) -T 1 -t 5 -R -b -O search"
CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-x hostname:$(hostname) -T 1 -t 15 -R -b -O search"

#
# Print Utilities
Expand Down

0 comments on commit d1d5d14

Please sign in to comment.