Advertisement
teknoraver

openwrt host uniq

Nov 14th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.65 KB | None | 0 0
  1. --- a/package/network/services/ppp/files/ppp.sh
  2. +++ b/package/network/services/ppp/files/ppp.sh
  3. @@ -113,6 +113,7 @@ proto_pppoe_init_config() {
  4.     ppp_generic_init_config
  5.     proto_config_add_string "ac"
  6.     proto_config_add_string "service"
  7. +   proto_config_add_string host_uniq
  8.  }
  9.  
  10.  proto_pppoe_setup() {
  11. @@ -128,12 +129,14 @@ proto_pppoe_setup() {
  12.  
  13.     json_get_var ac ac
  14.     json_get_var service service
  15. +   json_get_var host_uniq host_uniq
  16.  
  17.     ppp_generic_setup "$config" \
  18.         plugin rp-pppoe.so \
  19.         ${ac:+rp_pppoe_ac "$ac"} \
  20.         ${service:+rp_pppoe_service "$service"} \
  21. -       "nic-$iface"
  22. +       "nic-$iface" \
  23. +       ${host_uniq:+host-uniq "$host_uniq"}
  24.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement