Browse Source

Add bmx7 kernel modules

Bob Mottram 6 years ago
parent
commit
8def8ec0e1
2 changed files with 14 additions and 2 deletions
  1. 6
    0
      src/freedombone-app-batman
  2. 8
    2
      src/freedombone-mesh-install

+ 6
- 0
src/freedombone-app-batman View File

@@ -105,6 +105,12 @@ function mesh_install_batman {
105 105
     if ! grep -q "batman_adv" "$rootdir/etc/modules"; then
106 106
         echo 'batman_adv' >> "$rootdir/etc/modules"
107 107
     fi
108
+    if ! grep -q "tunnel6" "$rootdir/etc/modules"; then
109
+        echo 'tunnel6' >> "$rootdir/etc/modules"
110
+    fi
111
+    if ! grep -q "ip6_tunnel" "$rootdir/etc/modules"; then
112
+        echo 'ip6_tunnel' >> "$rootdir/etc/modules"
113
+    fi
108 114
 
109 115
     BATMAN_SCRIPT=$rootdir/var/lib/batman
110 116
 

+ 8
- 2
src/freedombone-mesh-install View File

@@ -139,8 +139,14 @@ function install_batman {
139 139
     $CHROOT_PREFIX apt-get -yq install python-dev libevent-dev ebtables python-pip git
140 140
     $CHROOT_PREFIX apt-get -yq install wireless-tools rfkill
141 141
 
142
-    if ! grep -q "batman_adv" $rootdir/etc/modules; then
143
-        echo 'batman_adv' >> $rootdir/etc/modules
142
+    if ! grep -q "batman_adv" "$rootdir/etc/modules"; then
143
+        echo 'batman_adv' >> "$rootdir/etc/modules"
144
+    fi
145
+    if ! grep -q "tunnel6" "$rootdir/etc/modules"; then
146
+        echo 'tunnel6' >> "$rootdir/etc/modules"
147
+    fi
148
+    if ! grep -q "ip6_tunnel" "$rootdir/etc/modules"; then
149
+        echo 'ip6_tunnel' >> "$rootdir/etc/modules"
144 150
     fi
145 151
 
146 152
     BATMAN_SCRIPT=$rootdir/var/lib/batman