summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-01-31 11:29:04 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-31 11:29:04 +0100
commit0d9e15f4338505fa10d67aa995a00b2a45d201ce (patch)
treec9c932516e855a8763dc83f634d63ef0c3801153 /package
parent026459174c428d1262fc210df6a9a0dc2e1a0e77 (diff)
reworking startup using devtmpfs
After this change it is not needed to create console, tty and null device nodes for nfsroot boot.
Diffstat (limited to 'package')
-rw-r--r--package/asterisk/Makefile1
-rwxr-xr-xpackage/base-files/extra/init5
-rw-r--r--package/busybox/Makefile2
3 files changed, 4 insertions, 4 deletions
diff --git a/package/asterisk/Makefile b/package/asterisk/Makefile
index c66f4c7e5..2a9fa679e 100644
--- a/package/asterisk/Makefile
+++ b/package/asterisk/Makefile
@@ -24,7 +24,6 @@ PKG_SITES:= http://downloads.asterisk.org/pub/telephony/asterisk/releases/
PKG_TARGET_DEPENDS:= !foxboard
-#PKG_DEPENDS_MAIN:= asterisk
PKG_DESCR_CHAN_MGCP:= Media Gateway Control Protocol implementation
PKG_DESCR_CHAN_SKINNY:= Skinny Client Control Protocol implementation
PKG_DESCR_CHAN_IAX2:= Support for the Inter Asterisk Protocol
diff --git a/package/base-files/extra/init b/package/base-files/extra/init
index e11446366..eabf45b5b 100755
--- a/package/base-files/extra/init
+++ b/package/base-files/extra/init
@@ -1,5 +1,5 @@
#!/bin/sh
-echo "Starting system ..."
+echo "System initialization ..."
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
mount -nt proc proc /proc
mount -o nosuid,nodev,noexec -t sysfs sysfs /sys
@@ -11,7 +11,6 @@ mount -o nosuid,nodev,noexec -t sysfs sysfs /sys
mount -o nosuid,size=128k,mode=0755 -t tmpfs mdev /dev
mkdir /dev/pts /dev/shm
mount -o nosuid,noexec -t devpts devpts /dev/pts
-exec 0<>/dev/console >&0 2>&0
echo >/dev/mdev.seq
echo "/sbin/mdev" >/proc/sys/kernel/hotplug
mdev -s
@@ -19,4 +18,6 @@ mount -o remount,rw /
cat /etc/.rnd >/dev/urandom 2>&1
[ -f /etc/fstab ] && mount -a
[ -x /sbin/cfgfs ] && { cfgfs setup; mount -o remount,ro /;}
+echo "Starting system init ..."
+exec 0<>/dev/console >&0 2>&0
exec /sbin/init
diff --git a/package/busybox/Makefile b/package/busybox/Makefile
index 7779226a7..8481fd64f 100644
--- a/package/busybox/Makefile
+++ b/package/busybox/Makefile
@@ -56,11 +56,11 @@ else
$(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
IPKG_ARCH="$(ARCH)" ARCH="$(ARCH)" HOSTCC="$(HOSTCC)" -C $(WRKBUILD) install $(MAKE_TRACE)
endif
+ $(CP) $(WRKINST)/* $(IDIR_BUSYBOX)/
ifeq ($(ADK_DEBUG),y)
${INSTALL_BIN} $(WRKBUILD)/busybox_unstripped \
$(IDIR_BUSYBOX)/bin/busybox
endif
- $(CP) $(WRKINST)/* $(IDIR_BUSYBOX)/
fake: $(TOPDIR)/.busyboxcfg do-configure do-install