Changeset 22380


Ignore:
Timestamp:
2010-07-24T21:33:11+02:00 (6 years ago)
Author:
jow
Message:

[package] base-files: localize variable in do_move_devtmpfs(), remove extra temporary variable and shorten conditional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/preinit/20_device_fs_mount

    r22379 r22380  
    44 
    55do_move_devtmpfs() { 
    6     foo="`grep devtmpfs /proc/mounts`" 
    7     x=${foo#* } 
    8     x=${x%% *} 
     6    local mnt="$(grep devtmpfs /proc/mounts)" 
     7          mnt="${mnt#* }"; mnt="${mnt%% *}" 
    98 
    10     if [ "$x" != "/dev" ] ; then 
    11         mount -o move "$x" /dev 
    12     fi 
     9    [ "$mnt" = "/dev" ] || mount -o move "$mnt" /dev 
    1310} 
    1411 
Note: See TracChangeset for help on using the changeset viewer.