35 lines
787 B
Plaintext
35 lines
787 B
Plaintext
blatte :
|
||
DO NOT REBOOT IT. it sometimes fails…
|
||
-i 'firmware-amd-graphics firmware-realtek'
|
||
|
||
raku :
|
||
+ ajouter nonfree dans les sources
|
||
-i firmware-atheros -i firmware-realtek
|
||
|
||
cheri :
|
||
cat > /etc/init.d/autoreboot <<EOF
|
||
#!/bin/bash
|
||
### BEGIN INIT INFO
|
||
# Provides: autoreboot
|
||
# Required-Start: \$local_fs \$syslog
|
||
# Required-Stop: \$local_fs \$syslog
|
||
# Default-Start: 2 3 4 5
|
||
# Default-Stop: 0 1 6
|
||
# Short-Description: starts autoreboot
|
||
# Description: starts autoreboot
|
||
### END INIT INFO
|
||
sleep 120
|
||
ip -4 -o a > /dev/tty1
|
||
if ! ip a | grep -q 'eth0' ; then
|
||
echo 'eth0 not found. rebooting' >/dev/tty1
|
||
sleep 3
|
||
reboot
|
||
else
|
||
echo 'eth0 found' >/dev/tty1
|
||
sleep 3
|
||
exit 0
|
||
fi
|
||
exit 0
|
||
EOF
|
||
chmod +x /etc/init.d/autoreboot
|