diff --git a/etc/fstab b/etc/fstab deleted file mode 100644 index a2f56ff..0000000 --- a/etc/fstab +++ /dev/null @@ -1,9 +0,0 @@ -# /etc/fstab: static file system information. -# -# -/dev/root / ext2 rw,noauto 0 1 -proc /proc proc defaults 0 0 -devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 -tmpfs /dev/shm tmpfs mode=0777 0 0 -tmpfs /tmp tmpfs defaults 0 0 -sysfs /sys sysfs defaults 0 0 diff --git a/etc/hostname b/etc/hostname deleted file mode 100644 index d17ff54..0000000 --- a/etc/hostname +++ /dev/null @@ -1 +0,0 @@ -rescueos diff --git a/etc/init.d/rcS b/etc/init.d/rcS deleted file mode 100755 index 6f085ec..0000000 --- a/etc/init.d/rcS +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh -EMULATOR=0 -VERSION="1.1" -mount -t sysfs none /sys -mount -n -t proc none /proc -echo 200 > /sys/class/backlight/acx565akm/brightness -mount -t tmpfs -o size=64k,mode=0755 tmpfs /dev -mkdir /dev/pts -mount -t devpts devpts /dev/pts -mount -t tmpfs -o rw,noexec,nosuid,mode=0755 tmpfs /run -mount -t tmpfs -o rw,mode=0755 tmpfs /root/ -mount -t tmpfs -o rw,nosuid,nodev tmpfs /tmp/ -echo /sbin/mdev.sh > /proc/sys/kernel/hotplug -mdev -s -find /sys/devices/* -name modalias | while read module ; do -modprobe `cat $module` 2> /dev/null -done -hwclock -s -hostname -F /etc/hostname - - -modprobe leds-lp5523 - - -/sbin/battery-watchdog & -#/rescueOS/charge21.bash > /run/batterylog & -clear -echo "Disclaimer: This system comes without any warranty. Use it at your own risk." -sleep 3 -clear -echo "Welcome to N900 Rescue Initrd $VERSION" -echo - -/sbin/loadkmap < /rescueOS/nokia-n900.kmap - -for i in 2 3 7 8 ; do - echo 25 > /sys/class/leds/lp5523\:channel$i/brightness -done - -autostart_script=`grep -q autostart /proc/cmdline && cat /proc/cmdline | sed -e 's/.*autostart=\(.*\)/\1/'` -if [ -n "$autostart_script" ] ; then -echo "Running $autostart_script" -$autostart_script -fi - -touch /run/resolv.conf - -echo "The root password is: rootme" - -#Being helpful for beginners, and annoying for "power users" -echo "Start an FTP server with anonymous up and downloads everywhere? y/n" -read result; -if [ "$result" = "y" ] ; then -tcpsvd -v 0.0.0.0 21 ftpd -w & -fi - -echo "Start telnetd? y/n" -read result; - -if [ "$result" = "y" ] ; then -telnetd -fi - -echo "Start usb-networking? y/n" -read result; - -if [ "$result" = "y" ] ; then -/rescueOS/usbnetworking-enable.sh -fi - -#node mess -if [ -e /sys/block/mmcblk0 ] && [ -e /sys/block/mmcblk1 ] ; then - echo -n "1" > /run/internal_nodenr -else - echo -n "0" > /run/internal_nodenr -fi - - - -if [ "$EMULATOR" = "1" ] ; then -udhcpc eth0 -fi -#We are done. - diff --git a/etc/inittab b/etc/inittab deleted file mode 100644 index a6b44a1..0000000 --- a/etc/inittab +++ /dev/null @@ -1,4 +0,0 @@ -::sysinit:/etc/init.d/rcS -tty1::respawn:-/bin/bash -ttyS0::respawn:-/bin/bash -::shutdown:/bin/sh /rescueOS/shutdown-cleanup diff --git a/etc/passwd b/etc/passwd deleted file mode 100644 index 1afe5b5..0000000 --- a/etc/passwd +++ /dev/null @@ -1 +0,0 @@ -root:$1$sz.20p5a$c40FElyGq0cIfHXeQQChQ/:0:0:root:/root:/bin/bash diff --git a/etc/passwd- b/etc/passwd- deleted file mode 100644 index bcf6e41..0000000 --- a/etc/passwd- +++ /dev/null @@ -1 +0,0 @@ -root:$1$6WxBQ9E9$xc/J67N0/3N1HAsGkVur..:0:0:root:/root:/bin/bash diff --git a/etc/profile b/etc/profile deleted file mode 100644 index 346d26d..0000000 --- a/etc/profile +++ /dev/null @@ -1 +0,0 @@ -PS1="\w\$ " diff --git a/sbin/battery-watchdog b/sbin/battery-watchdog deleted file mode 100755 index 3548f4b..0000000 --- a/sbin/battery-watchdog +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -#Modified, we warn only now.... -#fill_charger() -#{ -#usb=`cat /sys/bus/platform/devices/twl4030_usb/vbus` -#wall=`cat /sys/bus/platform/devices/musb_hdrc/charger` -#if [ "$usb" = "on" ] || [ "$wall" = 1 ] ; then -#charger=1 -#else -#charger=0 -#fi -#} -while [ true ] ; do -cap=`cat /sys/class/power_supply/bq27200-0/capacity` -#fill_charger -#if [ $cap -le 55 -a $charger -eq 0 ] ; then -if [ $cap -le 45 ] ; then -#echo "Attention: Plugin the charger soon to not run out of power. Current: $cap%. To disable this message, type \"stfu\"" -echo "Attention: Charge the battery (by running the charger script) to not run out of power. Current: $cap%. To disable this message, type \"stfu\"" -fi -sleep 20 -done - - - - - - diff --git a/sbin/mdev.sh b/sbin/mdev.sh deleted file mode 100755 index cc202bb..0000000 --- a/sbin/mdev.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -[ -e /lib/firmware/$FIRMWARE ] || echo -1 > /sys/$DEVPATH/loading -/sbin/mdev diff --git a/sbin/stfu b/sbin/stfu deleted file mode 100755 index a3f0f93..0000000 --- a/sbin/stfu +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -killall battery-watchdog diff --git a/usr/share/udhcpc/default.script b/usr/share/udhcpc/default.script deleted file mode 100755 index 2894087..0000000 --- a/usr/share/udhcpc/default.script +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh -# udhcpc script edited by Tim Riker - -RESOLV_CONF="/etc/resolv.conf" - -[ -n "$1" ] || { echo "Error: should be called from udhcpc"; exit 1; } - -NETMASK="" -[ -n "$subnet" ] && NETMASK="netmask $subnet" -BROADCAST="broadcast +" -[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" - -case "$1" in - deconfig) - echo "Setting IP address 0.0.0.0 on $interface" - ifconfig $interface 0.0.0.0 - ;; - - renew|bound) - echo "Setting IP address $ip on $interface" - ifconfig $interface $ip $NETMASK $BROADCAST - - if [ -n "$router" ] ; then - echo "Deleting routers" - while route del default gw 0.0.0.0 dev $interface ; do - : - done - - metric=0 - for i in $router ; do - echo "Adding router $i" - route add default gw $i dev $interface metric $((metric++)) - done - fi - - echo "Recreating $RESOLV_CONF" - echo -n > $RESOLV_CONF-$$ - [ -n "$domain" ] && echo "search $domain" >> $RESOLV_CONF-$$ - for i in $dns ; do - echo " Adding DNS server $i" - echo "nameserver $i" >> $RESOLV_CONF-$$ - done - mv $RESOLV_CONF-$$ $RESOLV_CONF - ;; -esac - -exit 0 -