Add patch 18_support_mtdblock_as_device_name.dpatch.
[live-boot-grml.git] / debian / patches / 18_support_mtdblock_as_device_name.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 18_support_mtdblock_as_device_name.dpatch by Michael Prokop <mika@grml.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Support /dev/mtdblock0 as valid device name (for memdisk boot).
6
7 --- a/scripts/live
8 +++ b/scripts/live
9 @@ -471,6 +471,9 @@ is_nice_device ()
10         elif echo ${sysfs_path} | grep -q "^/block/dm-"
11         then
12                 return 0
13 +       elif echo ${sysfs_path} | grep -q "^/block/mtdblock"
14 +       then
15 +               return 0
16         fi
17  
18         return 1