Firestarter restart fails after language-pack upgrade

Bug #174436 reported by Raul Morales
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
firestarter (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: firestarter

I use Ubuntu 7.04 with Spanish locale set and firestarter version 1.0.3-2ubuntu1.

Firestarter run ok at boot time, but later attempt to restart the firewall fails and rules cannot been modified. In GUI a window is shown with "External network device eth0 is not ready. Aborting.." message. This problem appeared after language-pack-es upgrade (1:7.04+20070601 -> 1:7.04+20071115).

I discovered that language-pack upgrade modify /sbin/ifconfig output (es_ES.UTF-8 locale) and now /etc/firestarter/firestarter.sh cannot detect network mask. This problem can be solved typing "export LC_ALL=C" after "#!/bin/bash" in /etc/firestarter/firestarter.sh

Output of $ /sbin/ifconfig | head -n 2 (LC_ALL=C)
eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:55
          inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
...
Output of $ /sbin/ifconfig | head -n 2 (LC_ALL=es_ES.UTF-8)
eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:55
          inet dirección:192.168.1.2 Bcast:192.168.1.255 Máscara:255.255.255.0

Code from /etc/firestarter/firestarter.sh searching for network mask:
MASK=`/sbin/ifconfig $IF | grep Mas | cut -d : -f 4`
...
if [ "$MASK" = "" -a "$1" != "stop" ]; then
        echo "External network device $IF is not ready. Aborting.."
        exit 2
fi

PS: sorry for my bad English.

Revision history for this message
Gabriel Peredo Rosas (gabriel-peredo) wrote :

I can confirm this bug.

I couldn't get Firestarter to work and I got the same message in the console. After adding
"export LC_ALL=C" to firestarter.sh as rmorales said, the problem disappeared.

Revision history for this message
Alejandro Bokser (abokser) wrote :

I can confirm this bug also.

Other way to solving it for Spanish is replacing every Mas by Más in /etc/firestarter/firestarter.sh

f.i.

MASK=`/sbin/ifconfig $IF | grep Más | cut -d : -f 4`

INMASK=`/sbin/ifconfig $INIF | grep Más | cut -d : -f 4`

It is a dirty hack but it works, I like the more that recomended by rmorales.

by.

Revision history for this message
ejjp (ejjuarezperez) wrote :

hello,

I have a laptop and switch between wifi or cable continuously in any place.

Editing /etc/firestarter/firestarter.sh to change Más by Mas, it make to me that I have to edit again and again the funky file because of the file firestarter.sh is regenerated. Can someone confirm to me this fact? Is possible that firestarter.sh file can be regenerated to the original?
sorry for my English. If someone needs more explanation of this estrange problem, told me please.

Thank you.

Revision history for this message
Jorge Román (joroman) wrote :

It happened The same thing to me. I edit the firestarter.sh, but the wizard erases the file and replaces with the old one again. How can avoid this situation?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.