|
30 |
# Debug |
30 |
# Debug |
31 |
echo "univention-ucc-remote-mount: add_fstab_entry called: options: '$1' '$2' '$3'"|logger |
31 |
echo "univention-ucc-remote-mount: add_fstab_entry called: options: '$1' '$2' '$3'"|logger |
32 |
|
32 |
|
33 |
# ignoe ram* and loop* devices bug #30468 |
33 |
# ignore ram* and loop* devices bug #30468 |
34 |
blacklist="ram loop" |
34 |
blacklist="ram loop" |
35 |
for i in $blacklist; do |
35 |
for i in $blacklist; do |
36 |
if [ -n "$1" ] && [[ "$1" == $i* ]]; then |
36 |
if [ -n "$1" ] && [[ "$1" == $i* ]]; then |
|
38 |
fi |
38 |
fi |
39 |
done |
39 |
done |
40 |
|
40 |
|
|
|
41 |
# ignore sdX - exact match |
42 |
blacklist="sda sdb sdc sdd sde" |
43 |
for i in $blacklist; do |
44 |
if [ -n "$1" ] && [[ "$1" == $i ]]; then |
45 |
echo "ignored device ${1}" | logger |
46 |
exit 0 |
47 |
fi |
48 |
done |
49 |
|
41 |
. /usr/share/univention-lib/all.sh |
50 |
. /usr/share/univention-lib/all.sh |
42 |
|
51 |
|
43 |
eval "$(univention-config-registry shell)" |
52 |
eval "$(univention-config-registry shell)" |