diff options
Diffstat (limited to 'gen_funcs.sh')
-rwxr-xr-x | gen_funcs.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gen_funcs.sh b/gen_funcs.sh index 4f0a0fc2..37942ad9 100755 --- a/gen_funcs.sh +++ b/gen_funcs.sh @@ -495,6 +495,17 @@ set_config_with_override() { eval ${CfgVar}=\"${Result}\" } +rootfs_type_is() { + local fstype=$1 + + if $(df -t ${fstype} / 2>/dev/null 1>/dev/null) + then + echo yes + else + echo no + fi +} + check_distfiles() { for i in $BUSYBOX_SRCTAR $MULTIPATH_SRCTAR $LVM_SRCTAR $DMRAID_SRCTAR $ISCSI_SRCTAR $GPG_SRCTAR do |