From 5bc85e994a5b0eff6db723817741a6da9c3ca27b Mon Sep 17 00:00:00 2001
From: "Eugene San (eugenesan)" <eugenesan@gmail.com>
Date: Tue, 3 Dec 2013 10:02:18 +0200
Subject: [PATCH] add support for kernel initrd images as vfs
This utilizes already existing initrd suppport
---
misc/ext.d/archive.sh | 3 +++
misc/mc.ext.in | 5 +++++
2 files changed, 8 insertions(+)
diff --git a/misc/ext.d/archive.sh b/misc/ext.d/archive.sh
index 2264b12..7397e85 100644
a
|
b
|
do_view_action() { |
14 | 14 | filetype=$1 |
15 | 15 | |
16 | 16 | case "${filetype}" in |
| 17 | auto) |
| 18 | less "${MC_EXT_FILENAME}" 2>/dev/null |
| 19 | ;; |
17 | 20 | gz) |
18 | 21 | gzip -dc "${MC_EXT_FILENAME}" 2>/dev/null |
19 | 22 | ;; |
diff --git a/misc/mc.ext.in b/misc/mc.ext.in
index d373813..35894e4 100644
a
|
b
|
shell/i/.cpio |
202 | 202 | Open=%cd %p/ucpio:// |
203 | 203 | View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio |
204 | 204 | |
| 205 | # initrd |
| 206 | regex/initrd.img-.+$ |
| 207 | Open=%cd %p/ucpio:// |
| 208 | View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.auto |
| 209 | |
205 | 210 | # 7zip archives (they are not man pages) |
206 | 211 | shell/i/.7z |
207 | 212 | Open=%cd %p/u7z:// |