btrfs-progs: improve init script

check for btrfs in /proc/filesystems instead of /proc/modules

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle
2014-12-22 09:50:06 +01:00
parent ff672d95c2
commit 602a247dfd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2009 OpenWrt.org
# Copyright (C) 2014 OpenWrt.org
START=19
start() {
grep -q btrfs /proc/modules && /usr/bin/btrfs device scan
grep -q btrfs /proc/filesystems && /usr/bin/btrfs device scan
}