Eventscripts: Make 40.fs_use use less processes and arguably clearer.
authorMartin Schwenke <martin@meltin.net>
Fri, 14 Oct 2011 04:52:12 +0000 (15:52 +1100)
committerMartin Schwenke <martin@meltin.net>
Wed, 16 Nov 2011 05:26:45 +0000 (16:26 +1100)
commitc5ef0d1440f1d952784cc67946c414d149722d01
tree8cb5e427c5e0b4a3715897c0712974d036719272
parent5de9ec2bdf8067406165bc470becdca87f458ae9
Eventscripts: Make 40.fs_use use less processes and arguably clearer.

* $fs can be parsed using shell prefix and suffix removal.

* df output can be parsed with a single call to sed.

  Failure is indicated by empty output from sed, so we check for that
  as the error condition, changing the associated message
  appropriately.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/events.d/40.fs_use