Falha no sistema após configurar wlan nas interfaces

Falha no sistema após configurar wlan nas interfaces

Estou tentando definir um script script.shpara ser executado quando o wlan se conectar. Depois de algumas pesquisas cheguei ao seguinte /etc/network/interfaces:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp 
    wireless-essid ANY
    wireless-mode managed
    post-up /etc/network/if-up.d/script.sh

No entanto, quando quero testar esta configuração e executar

sudo service networking restart

O sistema trava sem mensagem de erro, nem tenho acesso a nenhum tty.

Este é um trecho do log do meu sistema /etc/var/syslog:http://pastebin.com/1g2eJfjD

Detalhes do sistema

lsb_release -a

...
Description:  Ubuntu 13.10
Release:  13.10
Codename: saucy

sem nome -a

... 3.11.0-26-generic #45-Ubuntu SMP ... x86_64 GNU/Linux

informação relacionada