diff options
author | John Crispin <john@openwrt.org> | 2013-06-21 16:53:00 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-06-21 16:53:00 +0000 |
commit | d55316af38d76fc62d5354b9f444d474406f801d (patch) | |
tree | 623c2aad5722a3bf7941cdca13f48cf768d595d3 /package/block-mount/files/55_determine_extroot_sysupgrade | |
parent | 08de6fcc12b413620cab4375d9a27b06e9c3ff93 (diff) | |
download | upstream-d55316af38d76fc62d5354b9f444d474406f801d.tar.gz upstream-d55316af38d76fc62d5354b9f444d474406f801d.tar.bz2 upstream-d55316af38d76fc62d5354b9f444d474406f801d.zip |
block-mount: drop package, ubox now does the job for us
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36988
Diffstat (limited to 'package/block-mount/files/55_determine_extroot_sysupgrade')
-rw-r--r-- | package/block-mount/files/55_determine_extroot_sysupgrade | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/package/block-mount/files/55_determine_extroot_sysupgrade b/package/block-mount/files/55_determine_extroot_sysupgrade deleted file mode 100644 index b0cd9036c2..0000000000 --- a/package/block-mount/files/55_determine_extroot_sysupgrade +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/sh -# Copyright (C) 2010 Daniel Dickinson -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. - - -check_set_md5sum() { - local er_md5sum_file - er_md5sum_file="${ER_OVERLAY_PREFIX}/.extroot.md5sum" - local er_disabled - if [ "${ER_OVERLAY_ROM}" = "/rom" ]; then - er_disabled=/tmp/whole_root-disabled - else - er_disabled=/tmp${ER_OVERLAY_ROM}-disabled - fi - - local er_extroot_md5sum - if [ -f $md5sum_file ]; then - er_extroot_md5sum="$(cat $er_md5sum_file)" - fi - - local er_overlay_file="${ER_OVERLAY_ROM}/etc/extroot.md5sum" - - local er_extroot_overlay_md5sum - if [ -f "$er_overlay_file" ]; then - er_extroot_overlay_md5sum="$(cat $er_overlay_file)" - fi - - if [ -z "$er_extroot_overlay_md5sum" ]; then - cat $er_md5sum_file >$er_overlay_file - elif [ "$er_extroot_overlay_md5sum" != "$er_extroot_md5sum" ]; then - pi_extroot_mount_success="false" - mkdir -p $er_disabled - mount --move ${ER_OVERLAY_ROM} $er_disabled - fi -} - -set_jffs_md5sum() { - # We do this anytime block-extroot exists, even on the first boot with - # no extroot defined. - - local er_md5sum_file - er_md5sum_file="${ER_OVERLAY_PREFIX}/.extroot.md5sum" - - local er_extroot_md5sum - if [ -f $er_md5sum_file ]; then - er_extroot_md5sum="$(cat $er_md5sum_file)" - fi - if [ -z "$er_extroot_md5sum" ]; then - dd if=/dev/urandom count=32 bs=1k 2>/dev/null | md5sum | cut -f1 -d\ >$er_md5sum_file - fi -} - -determine_extroot_sysupgrade() { - check_skip || set_jffs_md5sum - - check_skip || [ "$pi_extroot_mount_success" != "true" ] || { - check_set_md5sum - } -} - -boot_hook_add preinit_mount_root determine_extroot_sysupgrade - |