summary refs log tree commit diff
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2015-01-16 09:35:35 +0100
committerJuan RP <xtraeme@gmail.com>2015-01-16 09:35:35 +0100
commit15328a1ea5fa57ffcd9636998d4f9eb7ae75c0ed (patch)
tree4b3290d999c51274e92b444f0a3f8257d9d97d45
parent9cad0b82f00618bb4b6747ab9b3865579528c5db (diff)
downloadrunit-void-15328a1ea5fa57ffcd9636998d4f9eb7ae75c0ed.tar.gz
runit-void-15328a1ea5fa57ffcd9636998d4f9eb7ae75c0ed.tar.xz
runit-void-15328a1ea5fa57ffcd9636998d4f9eb7ae75c0ed.zip
Fix typo and remove redundant msg from 03-filesystems.sh.
-rw-r--r--core-services/03-filesystems.sh3
-rw-r--r--crypt.awk2
2 files changed, 2 insertions, 3 deletions
diff --git a/core-services/03-filesystems.sh b/core-services/03-filesystems.sh
index e46c83d..fa1af38 100644
--- a/core-services/03-filesystems.sh
+++ b/core-services/03-filesystems.sh
@@ -24,8 +24,7 @@ if [ -e /etc/crypttab ]; then
     msg "Activating encrypted devices...\n"
     if [ -e /etc/runit/crypt.awk ]; then
         awk -f /etc/runit/crypt.awk /etc/crypttab
-    else:
-        msg_warn "parsing file not found, fallback to dest src filds\n"
+    else
         awk '/^#/ || /^$/ { next }
            NF>2 { print "unsupported crypttab: " $0 >"/dev/stderr"; next}
            { system("cryptsetup luksOpen " $2 " " $1) }' /etc/crypttab
diff --git a/crypt.awk b/crypt.awk
index 56ee2a3..b2cefdc 100644
--- a/crypt.awk
+++ b/crypt.awk
@@ -22,7 +22,7 @@ NF>4 { print "a valid crypttab has max 4 cols not " NF >"/dev/stderr"; next }
         ccmd="";
     }
     else {
-    # the option fild is not empty parse the options
+    # the option field is not empty parse the options
         dest=$1
         key=$3
         split($4, opts, ",");