From 41b7c32e9db6c8e0fb33274e25b26a492eefb5d3 Mon Sep 17 00:00:00 2001 From: Kim Date: Thu, 30 Mar 2017 14:35:10 +0200 Subject: cleanup mount functions --- etc/init.d/vyatta-router | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'etc') diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router index 89b721a..8888fa9 100755 --- a/etc/init.d/vyatta-router +++ b/etc/init.d/vyatta-router @@ -117,10 +117,10 @@ load_bootfile () # bind_mount_boot () { - persist_path=`/opt/vyatta/sbin/vyos-persistpath` + persist_path=$(/opt/vyatta/sbin/vyos-persistpath) if [ $? == 0 ]; then if [ -e $persist_path/boot ]; then - image_name=`cat /proc/cmdline | sed -e s+^.*vyos-union=/boot/++ | sed -e 's/ .*$//'` + image_name=$(cat /proc/cmdline | sed -e s+^.*vyos-union=/boot/++ | sed -e 's/ .*$//') if [ -n "$image_name" ]; then mount --bind $persist_path/boot/$image_name /boot @@ -152,14 +152,14 @@ bind_mount_boot () # mount_slash_config () { - mounted=`mount | grep /opt/vyatta/etc/config` + mounted=$(mount | grep /opt/vyatta/etc/config) -if [ -z "$mounted" ]; then + if [ -z "$mounted" ]; then if [ ! -d /config ]; then mkdir /config fi mount --bind /opt/vyatta/etc/config /config -else + else if [ ! -d /config ]; then mkdir /config mount --bind /opt/vyatta/etc/config /config -- cgit v1.2.3