1 |
Author: vapier |
2 |
Date: 2011-02-06 18:49:57 +0000 (Sun, 06 Feb 2011) |
3 |
New Revision: 3184 |
4 |
|
5 |
Modified: |
6 |
branches/baselayout-1_12/init.d/localmount |
7 |
Log: |
8 |
silence getent errors (such as "not found" on systems where /usr is a diff mount point) #353042 by lgringo |
9 |
|
10 |
Modified: branches/baselayout-1_12/init.d/localmount |
11 |
=================================================================== |
12 |
--- branches/baselayout-1_12/init.d/localmount 2011-02-06 18:24:54 UTC (rev 3183) |
13 |
+++ branches/baselayout-1_12/init.d/localmount 2011-02-06 18:49:57 UTC (rev 3184) |
14 |
@@ -27,7 +27,7 @@ |
15 |
grep -Fow usbdevfs /proc/filesystems) |
16 |
if [[ -n ${usbfs} ]] ; then |
17 |
ebegin "Mounting USB device filesystem (${usbfs})" |
18 |
- usbgid=$(echo $(getent group usb) | awk -F: '{print $3}') |
19 |
+ usbgid=$(echo $(getent group usb 2>/dev/null) | awk -F: '{print $3}') |
20 |
mount -t ${usbfs} usbfs /proc/bus/usb \ |
21 |
-o ${usbgid:+devmode=0664,devgid=${usbgid},}noexec,nosuid |
22 |
eend $? |