diff options
| -rw-r--r-- | meta/recipes-core/udev/udev/udev-cache | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/meta/recipes-core/udev/udev/udev-cache b/meta/recipes-core/udev/udev/udev-cache index 571463fa01..3c18061991 100644 --- a/meta/recipes-core/udev/udev/udev-cache +++ b/meta/recipes-core/udev/udev/udev-cache | |||
| @@ -44,15 +44,17 @@ fi | |||
| 44 | 44 | ||
| 45 | if [ "$DEVCACHE" != "" -a -e "$DEVCACHE_REGEN" ]; then | 45 | if [ "$DEVCACHE" != "" -a -e "$DEVCACHE_REGEN" ]; then |
| 46 | echo "Populating dev cache" | 46 | echo "Populating dev cache" |
| 47 | udevadm control --stop-exec-queue | 47 | ( |
| 48 | sysconf_cmd > "$SYSCONF_TMP" | 48 | udevadm control --stop-exec-queue |
| 49 | find /dev -xdev \( -type b -o -type c -o -type l \) | cut -c 2- \ | 49 | sysconf_cmd > "$SYSCONF_TMP" |
| 50 | | xargs tar cf "${DEVCACHE_TMP}" -T- | 50 | find /dev -xdev \( -type b -o -type c -o -type l \) | cut -c 2- \ |
| 51 | gzip < "${DEVCACHE_TMP}" > "$DEVCACHE" | 51 | | xargs tar cf "${DEVCACHE_TMP}" -T- |
| 52 | rm -f "${DEVCACHE_TMP}" | 52 | gzip < "${DEVCACHE_TMP}" > "$DEVCACHE" |
| 53 | mv "$SYSCONF_TMP" "$SYSCONF_CACHED" | 53 | rm -f "${DEVCACHE_TMP}" |
| 54 | udevadm control --start-exec-queue | 54 | mv "$SYSCONF_TMP" "$SYSCONF_CACHED" |
| 55 | rm -f "$DEVCACHE_REGEN" | 55 | udevadm control --start-exec-queue |
| 56 | rm -f "$DEVCACHE_REGEN" | ||
| 57 | ) & | ||
| 56 | fi | 58 | fi |
| 57 | 59 | ||
| 58 | exit 0 | 60 | exit 0 |
