#!/bin/sh clear # todo this is a super duper temporary "init" echo "Starting Sineware..." mount -t proc proc /proc mount -t sysfs sysfs /sys #mount -o mode=1777,nosuid,nodev -t tmpfs tmpfs /tmp #mount -o mode=1777,nosuid,nodev -t tmpfs tmpfs /var #mkdir -p /var/run echo "Detecting devices..." mount -t devtmpfs devtmpfs /dev echo "/sbin/mdev" > /proc/sys/kernel/hotplug mdev -s sleep 2 find /sys/devices -name modalias -type f -print0 | xargs -0 sort -u | \ xargs modprobe -ab 2>/dev/null sleep 2 echo "Getting ready..." hostname -F /etc/hostname # todo replace with NetworkManager or similar #ifconfig lo up #ifconfig eth0 up #udhcpc -i eth0 # todo find and mount /Data #mount /dev/sda /Data mount -o remount,rw / cd root_a/ mount -t proc /proc proc/ mount --rbind /sys sys/ mount --rbind /dev dev/ cd .. echo "" cat /sineware-release echo "" cat <