Ticket #3115: add-support-for-kernel-initrd-images-as-vfs.patch

File add-support-for-kernel-initrd-images-as-vfs.patch, 1.2 KB (added by eugenesan, 10 years ago)

add support for kernel initrd images as vfs

  • misc/ext.d/archive.sh

    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() { 
    1414    filetype=$1 
    1515 
    1616    case "${filetype}" in 
     17    auto) 
     18        less "${MC_EXT_FILENAME}" 2>/dev/null 
     19        ;; 
    1720    gz) 
    1821        gzip -dc "${MC_EXT_FILENAME}" 2>/dev/null 
    1922        ;; 
  • misc/mc.ext.in

    diff --git a/misc/mc.ext.in b/misc/mc.ext.in
    index d373813..35894e4 100644
    a b shell/i/.cpio 
    202202        Open=%cd %p/ucpio:// 
    203203        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio 
    204204 
     205# initrd 
     206regex/initrd.img-.+$ 
     207        Open=%cd %p/ucpio:// 
     208        View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.auto 
     209 
    205210# 7zip archives (they are not man pages) 
    206211shell/i/.7z 
    207212        Open=%cd %p/u7z://