summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2016-08-26 12:56:11 +0200
committerAnselm R Garbe <anselm@garbe.us>2016-08-26 12:56:11 +0200
commitc62508a3d65d456a4077144026c3ac317c5be551 (patch)
treee202a10731a72bbcedad995c54db4ae13138fc3a
parent92e5347b1359c17680452370e91f1516cd1845d5 (diff)
added rc changes, default arm for now
-rw-r--r--bin/rc/rc.exit22
-rw-r--r--bin/rc/rc.init26
-rw-r--r--config.mk13
3 files changed, 10 insertions, 51 deletions
diff --git a/bin/rc/rc.exit b/bin/rc/rc.exit
index 4a14abd6..6f0b7835 100644
--- a/bin/rc/rc.exit
+++ b/bin/rc/rc.exit
@@ -16,28 +16,6 @@ esac
# Set linefeed mode to avoid staircase effect
echo; /bin/stty onlcr
-HWCLOCK_PARAMS="-w"
-case $HARDWARECLOCK in
- "")
- ;;
- UTC)
- HWCLOCK_PARAMS="-u $HWCLOCK_PARAMS"
- ;;
- localtime)
- HWCLOCK_PARAMS="-l $HWCLOCK_PARAMS"
- ;;
- *)
- HWCLOCK_PARAMS=""
- ;;
-esac
-
-if test -n "$HWCLOCK_PARAMS"
-then
- test -n "$TIMEZONE" && export TZ="$TIMEZONE"
- /bin/hwclock $HWCLOCK_PARAMS /dev/rtc0
- unset TZ
-fi
-
/bin/dd if=/dev/urandom of=/etc/random-seed count=1 bs=512 2>/dev/null
/bin/killall5 -s TERM
diff --git a/bin/rc/rc.init b/bin/rc/rc.init
index 922119f5..7a32e1b8 100644
--- a/bin/rc/rc.init
+++ b/bin/rc/rc.init
@@ -42,28 +42,6 @@ fi
/bin/ip addr add 127.0.0.1/8 dev lo broadcast + scope host
/bin/ip link set lo up
-HWCLOCK_PARAMS="-s"
-case $HARDWARECLOCK in
- "")
- ;;
- UTC)
- HWCLOCK_PARAMS="-u $HWCLOCK_PARAMS"
- ;;
- localtime)
- HWCLOCK_PARAMS="-l $HWCLOCK_PARAMS"
- ;;
- *)
- HWCLOCK_PARAMS=""
- ;;
-esac
-
-if test -n "$HWCLOCK_PARAMS"
-then
- test -n "$TIMEZONE" && export TZ="$TIMEZONE"
- /bin/hwclock $HWCLOCK_PARAMS /dev/rtc0
- unset TZ
-fi
-
test -f /etc/random-seed && /bin/cat /etc/random-seed >/dev/urandom
/bin/dd if=/dev/urandom of=/etc/random-seed count=1 bs=512 2>/dev/null
@@ -77,6 +55,10 @@ fi
ulimit -c unlimited
+sleep 2
+
+loadkeys de
+
echo
/bin/sh -c '/bin/respawn /bin/getty /dev/tty1 linux' &>/dev/null &
/bin/sh -c '/bin/respawn /bin/getty /dev/tty2 linux' &>/dev/null &
diff --git a/config.mk b/config.mk
index 4e27bfa8..6c6badf4 100644
--- a/config.mk
+++ b/config.mk
@@ -4,14 +4,13 @@ VERSION = 0.0
# define target and target rootfs
HOST_ARCH=x86_64-linux-musl
TARGET_ARCH=arm-linux-musleabi
-TARGET_ARCH=$(HOST_ARCH)
-TARGET_LONG=8
-#TARGET_LONG=4
-SYS=
-#SYS=sys.pi
+#TARGET_ARCH=$(HOST_ARCH)
+#TARGET_LONG=8
+TARGET_LONG=4
+SYS=sys.pi
#SYS=sys.x86_64
-#DESTDIR=$(HOME)/rootfs-pi
-DESTDIR=$(HOME)/rootfs-x86_64
+DESTDIR=$(HOME)/rootfs-pi
+#DESTDIR=$(HOME)/rootfs-x86_64
PREFIX = /
MANPREFIX = $(PREFIX)/share/man