From 811d90ff40eddb4dec53aef5276424f25fff4606 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 25 Apr 2013 19:02:32 +0000 Subject: mount_root: prepare base-files Signed-off-by: John Crispin SVN-Revision: 36429 --- .../base-files/files.old/lib/firstboot/30_is_rootfs_mounted | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 package/base-files/files.old/lib/firstboot/30_is_rootfs_mounted (limited to 'package/base-files/files.old/lib/firstboot/30_is_rootfs_mounted') diff --git a/package/base-files/files.old/lib/firstboot/30_is_rootfs_mounted b/package/base-files/files.old/lib/firstboot/30_is_rootfs_mounted new file mode 100644 index 0000000000..7233fd9039 --- /dev/null +++ b/package/base-files/files.old/lib/firstboot/30_is_rootfs_mounted @@ -0,0 +1,10 @@ +#!/bin/sh + +# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2010 Vertical Communications + +skip_if_rootfs_mounted() { + mount -o noatime -t jffs2 "$mtdpart" /rom/overlay || exit +} + +boot_hook_add switch2jffs skip_if_rootfs_mounted -- cgit v1.2.3