^thehatsrule^

Group: Members
Posts: 3275
Joined: July 2006 |
 |
Posted: June 01 2007,14:38 |
 |
Yea, it would be wise to update that...
The scripts I'm using do something like:Code Sample | lsmod | grep -e "^unionfs " # and/or use `mount`? USING_UNIONFS=$?
cat /proc/cmdline | grep " legacy " USING_LEGACY=$? |
Of course using using case statements is probably better for performance, but it's shorter to write here. Then I have some error checking... such asCode Sample | if [ $USING_UNIONFS -eq $USING_LEGACY ] | but could be left out for this topic's purpose, since I made my scripts to be backwards-compatible with older DSL releases.
|