diff options
Diffstat (limited to 'modules/fstab/testFStype.py')
-rw-r--r-- | modules/fstab/testFStype.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/fstab/testFStype.py b/modules/fstab/testFStype.py new file mode 100644 index 0000000..0ce5de3 --- /dev/null +++ b/modules/fstab/testFStype.py @@ -0,0 +1,7 @@ + + +def validate(text): + validTypes = ['ext2', 'ext3', 'reiserfs', 'swap', 'vfat', 'ntfs', 'auto'] + if text in validTypes: + return True + return False |