From 4a9a3f1a06b2d180b80a4ec17f0c4b4003773316 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb <wbx@openadk.org> Date: Thu, 11 Jul 2013 16:09:29 +0200 Subject: fix cifs mounts on bootup, mount -a after network initialization. add LD_LIBRARY_PATH for raspberry pi special vc tools --- package/base-files/Makefile | 7 ++++--- package/base-files/src/etc/init.d/boot | 4 ---- package/base-files/src/etc/init.d/mount | 10 ++++++++++ 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 package/base-files/src/etc/init.d/mount (limited to 'package/base-files') diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 2f89753c5..41ead5331 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk PKG_NAME:= base-files PKG_VERSION:= 1.0 -PKG_RELEASE:= 54 +PKG_RELEASE:= 55 PKG_SECTION:= base PKG_DESCR:= basic files and scripts @@ -83,8 +83,9 @@ ifneq (${ADK_PACKAGE_CONFIG_IN_ETC},) gzip -9c ${TOPDIR}/.config >$(IDIR_BASE_FILES)/etc/adkconfig.gz chmod 600 $(IDIR_BASE_FILES)/etc/adkconfig.gz endif - - +ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y) + echo 'export LD_LIBRARY_PATH=/opt/vc/lib' >> $(IDIR_BASE_FILES)/etc/profile +endif # simple network configuration ifneq (${ADK_SIMPLE_NETWORK_CONFIG},) diff --git a/package/base-files/src/etc/init.d/boot b/package/base-files/src/etc/init.d/boot index e30360142..ed55ccc88 100644 --- a/package/base-files/src/etc/init.d/boot +++ b/package/base-files/src/etc/init.d/boot @@ -26,8 +26,4 @@ for f in /etc/modules.d/*; do done # settle down, after module load sleep 2 -# any lvm volumes to activate? -[ -x /usr/sbin/lvm ] && { lvm vgscan; lvm vgchange -ay;} -# check and mount all filesystems not / -[ -f /etc/fstab ] && { fsck -p >/dev/null; mount -a; swapon -a;} exit 0 diff --git a/package/base-files/src/etc/init.d/mount b/package/base-files/src/etc/init.d/mount new file mode 100644 index 000000000..f0df597e5 --- /dev/null +++ b/package/base-files/src/etc/init.d/mount @@ -0,0 +1,10 @@ +#!/bin/sh +#INIT 99 +[[ $1 = autostart ]] || exit 0 + +# any lvm volumes to activate? +[ -x /usr/sbin/lvm ] && { lvm vgscan; lvm vgchange -ay;} +# check and mount all filesystems not / +[ -f /etc/fstab ] && { fsck -p >/dev/null; mount -a; swapon -a;} + +exit 0 -- cgit v1.2.3