0038-x86-remove-old-soekris-config-hacks-install-a-more-appropriate-default-etc-config-network-with-lan-wan.patch 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Tue, 16 Jun 2015 01:07:41 +0200
  3. Subject: x86: remove old soekris config hacks, install a more appropriate default /etc/config/network with lan+wan
  4. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
  5. diff --git a/target/linux/x86/base-files/etc/config/network b/target/linux/x86/base-files/etc/config/network
  6. new file mode 100644
  7. index 0000000..c9953a0
  8. --- /dev/null
  9. +++ b/target/linux/x86/base-files/etc/config/network
  10. @@ -0,0 +1,26 @@
  11. +# Copyright (C) 2006 OpenWrt.org
  12. +
  13. +config interface loopback
  14. + option ifname lo
  15. + option proto static
  16. + option ipaddr 127.0.0.1
  17. + option netmask 255.0.0.0
  18. +
  19. +config interface lan
  20. + option ifname eth0
  21. + option type bridge
  22. + option proto static
  23. + option ipaddr 192.168.1.1
  24. + option netmask 255.255.255.0
  25. + option ip6assign 60
  26. +
  27. +config interface wan
  28. + option ifname eth1
  29. + option proto dhcp
  30. +
  31. +config interface wan6
  32. + option ifname eth1
  33. + option proto dhcpv6
  34. +
  35. +config globals globals
  36. + option ula_prefix auto
  37. diff --git a/target/linux/x86/base-files/etc/defconfig/net4801/network b/target/linux/x86/base-files/etc/defconfig/net4801/network
  38. deleted file mode 100644
  39. index 172d513..0000000
  40. --- a/target/linux/x86/base-files/etc/defconfig/net4801/network
  41. +++ /dev/null
  42. @@ -1,24 +0,0 @@
  43. -config interface loopback
  44. - option ifname lo
  45. - option proto static
  46. - option ipaddr 127.0.0.1
  47. - option netmask 255.0.0.0
  48. -
  49. -config interface lan
  50. - option ifname eth1
  51. - option type bridge
  52. - option proto static
  53. - option ipaddr 192.168.1.1
  54. - option netmask 255.255.255.0
  55. - option ip6assign 60
  56. -
  57. -config interface wan
  58. - option ifname eth0
  59. - option proto dhcp
  60. -
  61. -config interface wan6
  62. - option ifname @wan
  63. - option proto dhcpv6
  64. -
  65. -config globals globals
  66. - option ula_prefix auto
  67. diff --git a/target/linux/x86/base-files/etc/defconfig/net4826/network b/target/linux/x86/base-files/etc/defconfig/net4826/network
  68. deleted file mode 100644
  69. index 7c9fb63..0000000
  70. --- a/target/linux/x86/base-files/etc/defconfig/net4826/network
  71. +++ /dev/null
  72. @@ -1,12 +0,0 @@
  73. -config interface loopback
  74. - option ifname lo
  75. - option proto static
  76. - option ipaddr 127.0.0.1
  77. - option netmask 255.0.0.0
  78. -
  79. -config interface lan
  80. - option ifname eth0
  81. - option type bridge
  82. - option proto static
  83. - option ipaddr 192.168.1.1
  84. - option netmask 255.255.255.0
  85. diff --git a/target/linux/x86/base-files/etc/init.d/defconfig b/target/linux/x86/base-files/etc/init.d/defconfig
  86. deleted file mode 100755
  87. index 4b4f28f..0000000
  88. --- a/target/linux/x86/base-files/etc/init.d/defconfig
  89. +++ /dev/null
  90. @@ -1,20 +0,0 @@
  91. -#!/bin/sh /etc/rc.common
  92. -#
  93. -# Copyright (C) 2010 Thinktube Inc.
  94. -#
  95. -
  96. -START=05
  97. -
  98. -start() {
  99. - . /lib/soekris.sh
  100. -
  101. - local board=$(net48xx_board_name)
  102. -
  103. - [ ! -d /etc/defconfig/$board ] && board="net4826"
  104. -
  105. - for f in $( ls /etc/defconfig/$board ); do
  106. - if [ ! -e /etc/config/$f ]; then
  107. - cp /etc/defconfig/$board/$f /etc/config/
  108. - fi
  109. - done
  110. -}
  111. diff --git a/target/linux/x86/base-files/lib/soekris.sh b/target/linux/x86/base-files/lib/soekris.sh
  112. deleted file mode 100755
  113. index e416ad3..0000000
  114. --- a/target/linux/x86/base-files/lib/soekris.sh
  115. +++ /dev/null
  116. @@ -1,19 +0,0 @@
  117. -#!/bin/sh
  118. -
  119. -net48xx_board_name () {
  120. - local name
  121. - local pci=`wc -l /proc/bus/pci/devices`
  122. -
  123. - case "$pci" in
  124. - *"8"*)
  125. - name="net4826"
  126. - ;;
  127. - *1[0-4]*)
  128. - name="net4801"
  129. - ;;
  130. - *)
  131. - name="net4826"
  132. - ;;
  133. - esac
  134. - echo $name
  135. -}