www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre3/doc/user/problems

10 lines
173 B
Text
Raw Normal View History

fsck:
returns non-zero if it repaired something.
You have to wrap it into a shell-script :-(
#!/bin/sh
fsck $@
[ $? -le 1 ] && exit 0
exit 1