Skip to content

Commit

Permalink
Add sync after modifying config files
Browse files Browse the repository at this point in the history
Signed-off-by: Pratik Prajapati <[email protected]>
  • Loading branch information
pratik-prajapati-imgtec committed Aug 4, 2016
1 parent 036cb4d commit cd4ffa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions target/linux/pistachio/base-files/etc/init.d/set_mac
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ start()
generate_mac $SOFTAP_OTP_REG0
uci set wireless.ap.macaddr=$MAC
uci commit wireless
sync
/etc/init.d/network restart

generate_mac $ETH_OTP_REG0
Expand Down
2 changes: 2 additions & 0 deletions target/linux/pistachio/base-files/lib/netifd/proto/lowpan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ proto_lowpan_setup() {

proto_add_ipv6_address "$ip6addr" "128"
proto_send_update "$cfg"
sync
}

proto_lowpan_teardown() {
Expand All @@ -58,6 +59,7 @@ proto_lowpan_init_config() {
proto_config_add_string "ip6addr"
proto_config_add_string "pan_id"
proto_config_add_string "channel"
sync
}

[ -n "$INCLUDE_ONLY" ] || {
Expand Down

0 comments on commit cd4ffa5

Please sign in to comment.