]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
use stat format busybox understands too
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 27 Jul 2011 06:59:14 +0000 (06:59 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 27 Jul 2011 06:59:14 +0000 (06:59 +0000)
svn-id: @12277

functions

index 41a522f61040dd0bfdf1588e86b36c71007b469a..e4b41742772b2f8c90105479f2c833c3f3b5429b 100644 (file)
--- a/functions
+++ b/functions
@@ -120,7 +120,7 @@ dm_lvm2_name() {
                dm_minor=${node#/dev/dm-}
                ;;
        /dev/mapper/*)
-               stat=$(stat -L --format=%T "$node") || die "stat failed: $node"
+               stat=$(stat -L -%T "$node") || die "stat failed: $node"
                dm_minor=$((0x$stat))
        ;;
        esac
This page took 0.2294 seconds and 4 git commands to generate.