From 3e7449974c1f5ceaa81d412bd843f8c16a53affa Mon Sep 17 00:00:00 2001 From: cshore Date: Sun, 27 Mar 2011 06:40:51 +0000 Subject: [package] block-mount: Merged block-mount, block-extroot, and block-hotplug into a single binary package called block-mount. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26314 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/block-extroot/files/60_pivot_usb_root | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 package/block-extroot/files/60_pivot_usb_root (limited to 'package/block-extroot/files/60_pivot_usb_root') diff --git a/package/block-extroot/files/60_pivot_usb_root b/package/block-extroot/files/60_pivot_usb_root deleted file mode 100644 index b610a4ade..000000000 --- a/package/block-extroot/files/60_pivot_usb_root +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -# Copyright (C) 2010 Vertical Communications - -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. - -# Determine if we are requested to mount external root - -external_root_pivot() { - check_skip || [ "$pi_extroot_mount_success" != "true" ] || { - echo "switching to external rootfs" - if [ "$ER_OVERLAY_ROM" = "/overlay" ]; then - if [ "$ER_IS_SQUASHFS" = "true" ]; then - umount /tmp/overlay - fi - mount -o remount,ro / && fopivot /overlay /rom && pi_mount_skip_next=true - elif [ "$ER_OVERLAY_ROM" = "/rom" ]; then - if [ "$ER_IS_SQUASHFS" = "true" ]; then - umount /tmp/overlay - fi - mount -o remount,ro / && pivot_rom /rom /rom && pi_mount_skip_next=true - fi - } -} - -boot_hook_add preinit_mount_root external_root_pivot - -- cgit v1.2.3