diff options
| author | Joshua Lock <josh@linux.intel.com> | 2010-07-08 12:45:02 +0100 |
|---|---|---|
| committer | Joshua Lock <josh@linux.intel.com> | 2010-07-08 12:45:02 +0100 |
| commit | 4e3cb2adf518240d11d6c149dea075be086aeda1 (patch) | |
| tree | e9a9138eab0701b06c6c728de1b0644e3a42e26e /meta/packages/initscripts/initscripts-1.0/populate-volatile.sh | |
| parent | da9f079481ed65d541cf5b95b47b3b1db6d79c5e (diff) | |
| parent | e0a1238b227e3e846c220f218c614c52300b3f7a (diff) | |
| download | poky-4e3cb2adf518240d11d6c149dea075be086aeda1.tar.gz | |
Merge branch 'tk/master'
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0/populate-volatile.sh')
| -rwxr-xr-x | meta/packages/initscripts/initscripts-1.0/populate-volatile.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/populate-volatile.sh b/meta/packages/initscripts/initscripts-1.0/populate-volatile.sh index 8742dbfc6b..1813fd1240 100755 --- a/meta/packages/initscripts/initscripts-1.0/populate-volatile.sh +++ b/meta/packages/initscripts/initscripts-1.0/populate-volatile.sh | |||
| @@ -168,7 +168,20 @@ apply_cfgfile() { | |||
| 168 | 168 | ||
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | if test -e /etc/volatile.cache -a "$VOLATILE_ENABLE_CACHE" = "yes" -a "x$1" != "xupdate" | 171 | clearcache=0 |
| 172 | exec 9</proc/cmdline | ||
| 173 | while read line <&9 | ||
| 174 | do | ||
| 175 | case "$line" in | ||
| 176 | *clearcache*) clearcache=1 | ||
| 177 | ;; | ||
| 178 | *) continue | ||
| 179 | ;; | ||
| 180 | esac | ||
| 181 | done | ||
| 182 | exec 9>&- | ||
| 183 | |||
| 184 | if test -e /etc/volatile.cache -a "$VOLATILE_ENABLE_CACHE" = "yes" -a "x$1" != "xupdate" -a "x$clearcache" = "x0" | ||
| 172 | then | 185 | then |
| 173 | sh /etc/volatile.cache | 186 | sh /etc/volatile.cache |
| 174 | else | 187 | else |
