#!/bin/sh

mount -o remount,rw /media

# set default root password
echo -e "debug\ndebug\n" | passwd >/dev/null 2>&1

# usb network startup
ifconfig lo 127.0.0.1 up
ifconfig usb0 192.168.10.10 up
route add -net 127.0.0.0 netmask 255.0.0.0 lo
telnetd

# logs
dmesg > /media/crux/dmesg.log
ifconfig > /media/crux/ifconfig.log
