diff options
author | suigin <suigin@national.shitposting.agency> | 2016-09-20 08:42:57 -0700 |
---|---|---|
committer | suigin <suigin@national.shitposting.agency> | 2016-09-20 08:42:57 -0700 |
commit | d88392e7ec28571c13f10612e55ca3cb9007f350 (patch) | |
tree | 0c1143d7cb748110815c37bb376edffae39c2f22 /crypt.awk | |
parent | 6afe11f7adb479dea3de45ea33da3deaa288ad31 (diff) | |
download | runit-void-d88392e7ec28571c13f10612e55ca3cb9007f350.tar.gz runit-void-d88392e7ec28571c13f10612e55ca3cb9007f350.tar.xz runit-void-d88392e7ec28571c13f10612e55ca3cb9007f350.zip |
Updated fix to crypt.awk so that it works with gawk, mawk, and nawk.
Furthermore, works with bash, dash or mksh set as the default /bin/sh through xbps-alternatives.
Diffstat (limited to 'crypt.awk')
-rw-r--r-- | crypt.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypt.awk b/crypt.awk index f025324..2d2c965 100644 --- a/crypt.awk +++ b/crypt.awk @@ -3,7 +3,7 @@ NF>4 { print "a valid crypttab has max 4 cols not " NF >"/dev/stderr"; next } { # decode the src variants split($2, o_src, "=") - if (o_src[1] == "UUID") "blkid -t " $2 " -l -o device" | getline src; + if (o_src[1] == "UUID") ("blkid -l -o device -t " $2) | getline src; else src=o_src[1]; # no password or none is given, ask fo it |