Guest User

Untitled

a guest
Feb 18th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo 'diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate
  4. index 7bec566..51e24a3 100755
  5. --- a/package/base-files/files/bin/config_generate
  6. +++ b/package/base-files/files/bin/config_generate
  7. @@ -53,7 +53,7 @@ EOF
  8. lan) uci -q batch <<EOF
  9. set network.$1.type='\''bridge'\''
  10. set network.$1.proto='\''static'\''
  11. -set network.$1.ipaddr='\''192.168.1.1'\''
  12. +set network.$1.ipaddr='\''192.168.61.1'\''
  13. set network.$1.netmask='\''255.255.255.0'\''
  14. set network.$1.ip6assign='\''60'\''
  15. EOF
  16. diff --git a/package/base-files/files/etc/shadow b/package/base-files/files/etc/shadow
  17. index 4b4154f..cd2cd2d 100644
  18. --- a/package/base-files/files/etc/shadow
  19. +++ b/package/base-files/files/etc/shadow
  20. @@ -1,4 +1,4 @@
  21. -root::0:0:99999:7:::
  22. +root:$1$0Pnb7rBU$gE5y0qFLtkelOdLQlT.C7/:16303:0:99999:7:::
  23. daemon:*:0:0:99999:7:::
  24. ftp:*:0:0:99999:7:::
  25. network:*:0:0:99999:7:::
  26. diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
  27. index 0b662eb..51a83cb 100644
  28. --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
  29. +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
  30. @@ -109,14 +109,12 @@ config wifi-device radio$devidx
  31. option hwmode 11${mode_band}
  32. $dev_id
  33. $ht_capab
  34. - # REMOVE THIS LINE TO ENABLE WIFI:
  35. - option disabled 1
  36.  
  37. config wifi-iface
  38. option device radio$devidx
  39. option network lan
  40. option mode ap
  41. - option ssid OpenWrt
  42. + option ssid VoCore
  43. option encryption none
  44.  
  45. EOF
  46. diff --git a/target/linux/ramips/dts/VOCORE.dts b/target/linux/ramips/dts/VOCORE.dts
  47. index e6288b0..29867ed 100644
  48. --- a/target/linux/ramips/dts/VOCORE.dts
  49. +++ b/target/linux/ramips/dts/VOCORE.dts
  50. @@ -46,7 +46,7 @@
  51.  
  52. partition@50000 {
  53. label = "firmware";
  54. - reg = <0x50000 0x7b0000>;
  55. + reg = <0x50000 0xfb0000>;
  56. };
  57. };
  58. ' > patch.txt
  59.  
  60. apt-get update
  61. apt-get install -y zlib1g-dev libncurses5-dev gawk subversion libssl-dev git gcc g++ make unzip bzip2 python wget file xz-utils
  62. git clone git://git.openwrt.org/15.05/openwrt.git vocorechaoscalmer
  63. cd vocorechaoscalmer
  64. mv ../patch.txt .
  65. patch -p1 < patch.txt
  66. ./scripts/feeds update -a && ./scripts/feeds install -a
  67. make menuconfig
  68. export BR2_JLEVEL=2
  69. make V=1
Add Comment
Please, Sign In to add comment