From 63eda033cc9e28b91b1b88e8ece13f52ad9708c8 Mon Sep 17 00:00:00 2001 From: fbt Date: Mon, 31 Aug 2015 02:03:26 +0300 Subject: [PATCH] not a hashtable --- rc.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rc.in b/rc.in index 6a5d093..0050fe6 100644 --- a/rc.in +++ b/rc.in @@ -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