Ignore:
Timestamp:
2010-10-13T21:21:41+02:00 (6 years ago)
Author:
jow
Message:

[backfire] merge r21987, r22002, r22147, r22148 and r22150

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/block-mount/files/fstab.init

    r23302 r23429  
    4242        config_load fstab 
    4343        mkdir -p /var/lock 
    44         lock /var/lock/fstab.lck 
    45         echo '# WARNING: this is an auto generated file, please use uci to set defined filesystems' > /etc/fstab 
    46         lock -u /var/lock/fstab.lck 
     44        lock -w /var/lock/fstab.lck && { 
     45                lock /var/lock/fstab.lck 
     46                [ -e /tmp/fstab ] || {  
     47                        echo '# WARNING: this is an auto generated file, please use uci to set defined filesystems' > /tmp/fstab 
     48                } 
     49                lock -u /var/lock/fstab.lck 
     50        } 
     51        config_foreach do_swapon swap 
    4752        config_foreach do_mount mount 
    48         config_foreach do_swapon swap 
     53        config_foreach do_swapon swap  # do swap a second time so that swap on filesystems is enabled 
    4954} 
    5055 
Note: See TracChangeset for help on using the changeset viewer.