bin-utils/fix_wicd.sh

14 lines
358 B
Bash
Executable File

#!/bin/sh
# corrige un bug de wicd, un ligne contenant [] apparait dans le fichier de
# conf et fait planter le demon
# à executer avec les droits root
# Fichier à corriger
CONF_FILE=/etc/wicd/wired-settings.conf
# Backup
cp $CONF_FILE $CONF_FILE.bak
# supprimer les lignes contenant []
sed '/\[\]/d' $CONF_FILE.bak > $CONF_FILE
/etc/init.d/wicd restart