changes
This commit is contained in:
1 parent
ff3dd4dfb3
commit
ecc8f39da5
3 files changed
+2
-11
No files matched your search
@@ -23,7 +23,7 @@ define Build/Prepare
|
|||||||
$(INSTALL_DIR) $(PKG_BUILD_DIR)
|
$(INSTALL_DIR) $(PKG_BUILD_DIR)
|
||||||
|
|
||||||
# Copy uci_defaults and remove any trailing "exit 0"
|
# Copy uci_defaults and remove any trailing "exit 0"
|
||||||
sed '/^exit 0$$/d' ./files/uci_defaults > $(PKG_BUILD_DIR)/99-default-config
|
$(INSTALL_BIN) ./files/uci_defaults $(PKG_BUILD_DIR)/99-default-config
|
||||||
|
|
||||||
# Add blank line separator
|
# Add blank line separator
|
||||||
echo "" >> $(PKG_BUILD_DIR)/99-default-config
|
echo "" >> $(PKG_BUILD_DIR)/99-default-config
|
||||||
|
|||||||
@@ -26,9 +26,3 @@ sed -i 's/"device": "eth0"/"device": "br-lan"/g' /etc/board.json
|
|||||||
|
|
||||||
# Commit all changes
|
# Commit all changes
|
||||||
uci commit
|
uci commit
|
||||||
|
|
||||||
# Apply network and wireless configuration
|
|
||||||
wifi reload
|
|
||||||
/etc/init.d/network restart
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
# Enabling WiFi
|
# Enabling WiFi
|
||||||
uci set wireless.@wifi-device[0].disabled='0'
|
uci set wireless.@wifi-device[0].disabled='0'
|
||||||
@@ -23,8 +24,4 @@ sed -i 's/"device": "eth0"/"device": "br-lan"/g' /etc/board.json
|
|||||||
# Commit all changes
|
# Commit all changes
|
||||||
uci commit
|
uci commit
|
||||||
|
|
||||||
# Apply network and wireless configuration
|
|
||||||
wifi reload
|
|
||||||
/etc/init.d/network restart
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
Reference in new issue
Block a user