not a hashtable

This commit is contained in:
Jack L. Frost 2015-08-31 02:03:26 +03:00
parent 2b32655365
commit 63eda033cc
1 changed files with 7 additions and 7 deletions

14
rc.in
View File

@ -28,14 +28,15 @@ rc.tmpfiles() {
rc.mount() {
for fs in "${cfg_mounts[@]}"; do
echo "$fs" | while IFS=':' read device fs_type mountpoint mount_options
echo "$fs" | while IFS=':' read device fs_type mountpoint mount_options; do
[[ "$mount_options" ]] || { mount_options='defaults'; }
[[ "$mount_options" ]] || { mount_options='defaults'; }
mountpoint -q "$mountpoint" || {
[[ -d "$mountpoint" ]] || { mkdir -p "$mountpoint"; }
mount "$device" -n -t "$fs_type" -o "$mount_options" "$mountpoint"
}
mountpoint -q "$mountpoint" || {
[[ -d "$mountpoint" ]] || { mkdir -p "$mountpoint"; }
mount "$device" -n -t "$fs_type" -o "$mount_options" "$mountpoint"
}
done
done
}
@ -160,7 +161,6 @@ rc.timezone() {
}
rc.main() {
declare -A cfg_mounts
source "@ETC@/rc.conf"
# Default XDG_RUNTIME_DIR for all non-system users