modules/admin-full: fix extroot and fsck availability check (https://dev.openwrt...
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 9 Jul 2013 09:33:22 +0000 (09:33 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 9 Jul 2013 09:33:22 +0000 (09:33 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua

index bb58cca003a2097794fc200fee80ab2fe5222165..bac886888a02bb9698ebbefbe6890c104c5889b2 100644 (file)
@@ -15,8 +15,8 @@ $Id$
 local fs   = require "nixio.fs"
 local util = require "nixio.util"
 
-local has_extroot = fs.access("/lib/preinit/00_extroot.conf")
-local has_fscheck = fs.access("/lib/functions/fsck.sh")
+local has_extroot = fs.access("/sbin/block")
+local has_fscheck = fs.access("/usr/sbin/e2fsck")
 
 local devices = {}
 util.consume((fs.glob("/dev/sd*")), devices)