Skip to content

Commit

Permalink
fix new check to audit error code
Browse files Browse the repository at this point in the history
  • Loading branch information
graysky2 committed Apr 27, 2015
1 parent f87d5e3 commit 2c31c1e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions common/profile-sync-daemon.in
Expand Up @@ -99,8 +99,11 @@ if [[ $OLFS -eq 1 ]]; then
if [[ -z $OLFSVER ]]; then
# since mount should call modprobe on invocation, check to see if either
# module is in the tree using modinfo
[[ $(modinfo overlayfs &>/dev/null) -eq 0 ]] && OLFSVER=22
[[ $(modinfo overlay &>/dev/null) -eq 0 ]] && OLFSVER=23
modinfo overlayfs &>/dev/null
[[ $? -eq 0 ]] && OLFSVER=22

modinfo overlay &>/dev/null
[[ $? -eq 0 ]] && OLFSVER=23
fi
fi

Expand Down

0 comments on commit 2c31c1e

Please sign in to comment.