From e7515e88f26ddfd3d386272ec7d7b95b4b2f48ab Mon Sep 17 00:00:00 2001 From: Florian Klien Date: Thu, 6 Sep 2012 15:42:41 +0200 Subject: [PATCH] fixing sbin compatibility issue other distributions might locate mkfs.vfat in a different location than /sbin. e.g: gentoo installs dosfstools to /usr/sbin --- grml-crypt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grml-crypt b/grml-crypt index 8fbe04d..6a4cd70 100755 --- a/grml-crypt +++ b/grml-crypt @@ -427,8 +427,8 @@ if (( $OPTIMIZING_LEVEL_ > 1 )); then fi TARGET_="$2" -MKFS_="/sbin/mkfs.$FSTYPE_" -if [ ! -x "$MKFS_" ]; then +MKFS_="`which mkfs.$FSTYPE_`" +if [ $? != "0" ]; then die "invalid filesystem type \"$FSTYPE_\"" 1 fi -- 2.1.4