Bug#731256: gogoc: Fail to start gogoc in router mode due to incorrectly-writen template script.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug#731256: gogoc: Fail to start gogoc in router mode due to incorrectly-writen template script.

Juergen Kosel
Package: gogoc
Version: 1:1.2-5
Followup-For: Bug #731256

Dear Maintainer,

after upgrading my PC from Wheezy to Jessie, gogoc fails to start in
router mode. Because it uncorrectly configures radvd.
I have fixed it, with the following quick hack for my PC:
--------------------------------------------------------
--- /usr/share/gogoc/template/linux.sh~ 2013-09-30 02:35:11.000000000 +0200
+++ /usr/share/gogoc/template/linux.sh 2015-05-03 13:28:13.427283851 +0200
@@ -309,21 +309,21 @@
 };
 EOF
 
-   echo "$subif" | while read sub int ; do
-      PREF="`SubNet "${TSP_PREFIX}::0/${TSP_PREFIXLEN}" "$sub"`"
-      cat >> "$rtadvdconfigfile" <<EOF
-interface $int
-{
-  AdvSendAdvert on;
-  AdvLinkMTU 1280;
-  prefix ${PREF}::/64
-  {
-    AdvOnLink on;
-    AdvAutonomous on;
-  };
-};
-EOF
-   done
+#   echo "$subif" | while read sub int ; do
+#      PREF="`SubNet "${TSP_PREFIX}::0/${TSP_PREFIXLEN}" "$sub"`"
+#      cat >> "$rtadvdconfigfile" <<EOF
+#interface $int
+#{
+#  AdvSendAdvert on;
+#  AdvLinkMTU 1280;
+#  prefix ${PREF}::/64
+#  {
+#    AdvOnLink on;
+#    AdvAutonomous on;
+#  };
+#};
+#EOF
+#   done
 
    # Start the radvd daemon.
    Display 1 "Starting radvd: $rtadvd -u radvd -C $rtadvdconfigfile"
--------------------------------------------------------

BTW: I have also a 2nd problem: With this fix gogoc is properly
started, if the system uses sysvinit, but not if systemd is used.

-- System Information:
Debian Release: 8.0
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gogoc depends on:
ii  iproute2     3.16.0-2
ii  libc6        2.19-18
ii  libgcc1      1:4.9.2-10
ii  libssl1.0.0  1.0.1k-3
ii  libstdc++6   4.9.2-10
ii  net-tools    1.60-26+b1

Versions of packages gogoc recommends:
ii  radvd  1:1.9.1-1.3

Versions of packages gogoc suggests:
pn  sipcalc  <none>

-- Configuration Files:
/etc/gogoc/gogoc.conf [Errno 13] Keine Berechtigung: u'/etc/gogoc/gogoc.conf'

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/gogoc/template/linux.sh (from gogoc package)


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]