Package: firestarter
Version: 1.0.3-6
Firestarter refuses to run when you use a locale other than English.
The problem is in the (generated) file /etc/firestarter/firestarter.sh.
The following lines:
IP=`/sbin/ifconfig $IF | grep inet | cut -d : -f 2 | cut -d \\ -f 1`
MASK=`/sbin/ifconfig $IF | grep Mas | cut -d : -f 4`
BCAST=`/sbin/ifconfig $IF |grep Bcast: | cut -d : -f 3 | cut -d \\ -f 1`
fails when the locale is other than English, because they look up
several keyword ("Mas", "Bcast:") which doesn't appears in ifconfig in
Spanish. Example:
[EMAIL PROTECTED]:~$ LANG=C ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:18:f3:53:b2:9a
inet addr:192.168.2.100 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2736 errors:0 dropped:0 overruns:0 frame:0
TX packets:2634 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2917432 (2.7 MB) TX bytes:368744 (360.1 KB)
Interrupt:18 Base address:0xa000
[EMAIL PROTECTED]:~$ ifconfig eth0
eth0 Link encap:Ethernet direcciónHW 00:18:f3:53:b2:9a
inet dirección:192.168.2.100 Difusión:192.168.2.255
Máscara:255.255.255.0
ARRIBA DIFUSIÓN CORRIENDO MULTICAST MTU:1500 Metric:1
RX packets:2723 errors:0 dropped:0 overruns:0 frame:0
TX packets:2620 errors:0 dropped:0 overruns:0 carrier:0
colisiones:0 txqueuelen:1000
RX bytes:2908959 (2.7 MB) TX bytes:365950 (357.3 KB)
Interrupción:18 Dirección base: 0xa000
As a workaround, you can hack the /etc/firestarter/firestarter.sh file,
replacing the three above lines with the following:
IP=`LANG=C /sbin/ifconfig $IF | grep inet | cut -d : -f 2 | cut -d \\ -f
1`
MASK=`LANG=C /sbin/ifconfig $IF | grep Mas | cut -d : -f 4`
BCAST=`LANG=C /sbin/ifconfig $IF |grep Bcast: | cut -d : -f 3 | cut -d \
\ -f 1`
The following is a patch which can be used to hack the problem, using
the above workaround:
======== BEGIN OF THE PATCH =========
--- src/scriptwriter.c.old 2008-04-30 22:42:08.000000000 +0200
+++ src/scriptwriter.c 2008-04-30 22:44:23.000000000 +0200
@@ -88,9 +88,9 @@
fprintf (f, "\n# --(Extract Network Information)--\n\n");
fprintf (f, "# External network interface data\n"
- "IP=`/sbin/ifconfig $IF | grep inet | cut -d : -f 2 | cut
-d \\ -f 1`\n"
- "MASK=`/sbin/ifconfig $IF | grep Mas | cut -d : -f 4`\n"
- "BCAST=`/sbin/ifconfig $IF |grep Bcast: | cut -d : -f 3 |
cut -d \\ -f 1`\n"
+ "IP=`LANG=C /sbin/ifconfig $IF | grep inet | cut -d : -f 2
| cut -d \\ -f 1`\n"
+ "MASK=`LANG=C /sbin/ifconfig $IF | grep Mas | cut -d : -f
4`\n"
+ "BCAST=`LANG=C /sbin/ifconfig $IF |grep Bcast: | cut -d :
-f 3 | cut -d \\ -f 1`\n"
"NET=$IP/$MASK\n\n");
fprintf (f, "if [ \"$NAT\" = \"on\" ]; then\n"
======== END OF THE PATCH =========
Please, can anybody apply the patch? Thanks a lot.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]