default IFS, add tmp

This commit is contained in:
Jack L. Frost 2015-09-01 13:02:18 +03:00
parent 63eda033cc
commit 5dad6a777e
2 changed files with 10 additions and 8 deletions

16
rc.conf
View File

@ -22,14 +22,16 @@ ctrlaltdel soft
# Virtual filesystems
cfg_mounts=(
'proc:proc:/proc'
'run:tmpfs:/run'
'sys:sysfs:/sys'
'run tmpfs /run'
'tmp tmpfs /tmp'
'dev:devtmpfs:/dev'
'pts:devpts:/dev/pts:noexec,nosuid,gid=5,mode=0620'
'mqueue:mqueue:/dev/mqueue:noexec,nosuid,nodev'
'shm:tmpfs:/dev/shm:defaults,mode=0777'
'proc proc /proc'
'sys sysfs /sys'
'dev devtmpfs /dev'
'pts devpts /dev/pts noexec,nosuid,gid=5,mode=0620'
'mqueue mqueue /dev/mqueue noexec,nosuid,nodev'
'shm tmpfs /dev/shm defaults,mode=0777'
)
# Some temporary directories and files

2
rc.in
View File

@ -28,7 +28,7 @@ rc.tmpfiles() {
rc.mount() {
for fs in "${cfg_mounts[@]}"; do
echo "$fs" | while IFS=':' read device fs_type mountpoint mount_options; do
echo "$fs" | while read device fs_type mountpoint mount_options; do
[[ "$mount_options" ]] || { mount_options='defaults'; }