aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files.old/lib/firstboot/10_determine_parts
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-06-21 16:53:26 +0000
committerJohn Crispin <blogic@openwrt.org>2013-06-21 16:53:26 +0000
commit97520d989f65412c27997ed9bad5879880000c89 (patch)
tree07c20cfc20e3a525c70cf6b2c9ded37c565b91e5 /package/base-files/files.old/lib/firstboot/10_determine_parts
parent422c9d08dc44f0db6d89d1c86e925e8352346ce5 (diff)
downloadmaster-187ad058-97520d989f65412c27997ed9bad5879880000c89.tar.gz
master-187ad058-97520d989f65412c27997ed9bad5879880000c89.tar.bz2
master-187ad058-97520d989f65412c27997ed9bad5879880000c89.zip
base-files: procd init is now the default, remove files.old
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36996 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files.old/lib/firstboot/10_determine_parts')
-rw-r--r--package/base-files/files.old/lib/firstboot/10_determine_parts46
1 files changed, 0 insertions, 46 deletions
diff --git a/package/base-files/files.old/lib/firstboot/10_determine_parts b/package/base-files/files.old/lib/firstboot/10_determine_parts
deleted file mode 100644
index 3f56e32a89..0000000000
--- a/package/base-files/files.old/lib/firstboot/10_determine_parts
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-
-set_mtd_part() {
- partname="rootfs_data"
- mtdpart="$(find_mtd_part $partname)"
-}
-
-set_rom_part() {
- rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
-}
-
-set_jffs_part() {
- jffs=$(awk '/jffs2/ {print $2}' /proc/mounts)
-}
-
-determine_mtd_part() {
- set_mtd_part
- if [ -z "$mtdpart" ]; then
- echo "MTD partition not found."
- exit 1
- fi
-}
-
-determine_rom_part() {
- check_skip || {
- set_rom_part
- if [ -z "$rom" ]; then
- echo "You do not have a squashfs partition; aborting"
- echo "(firstboot cannot be run on jffs2 based firmwares)"
- exit 1
- fi
- }
-}
-
-determine_jffs2_part() {
- check_skip || {
- set_jffs_part
- }
-}
-
-boot_hook_add switch2jffs determine_mtd_part
-boot_hook_add jffs2reset determine_mtd_part
-boot_hook_add switch2jffs determine_rom_part
-boot_hook_add jffs2reset determine_rom_part
-boot_hook_add switch2jffs determine_jffs2_part
-boot_hook_add jffs2reset determine_jffs2_part