summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSebastian2012-04-26 15:13:43 +0200
committerSebastian2012-04-26 15:13:43 +0200
commit11863280555bd684b84271e7b1e1cc1af7fc34c6 (patch)
tree97e2fa0d050a23d73bf2dbf6a8125635acceba05 /tools
parentpreserve links when copy static content to tftpboot (diff)
downloadcore-11863280555bd684b84271e7b1e1cc1af7fc34c6.tar.gz
core-11863280555bd684b84271e7b1e1cc1af7fc34c6.tar.xz
core-11863280555bd684b84271e7b1e1cc1af7fc34c6.zip
fix error msgs with spaces in /etc/opt/openslx/settings values
Diffstat (limited to 'tools')
-rwxr-xr-xtools/installer7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/installer b/tools/installer
index 4b10d102..27ca86bf 100755
--- a/tools/installer
+++ b/tools/installer
@@ -3,7 +3,12 @@
# include fancy bash color stuff
. tools/inc/colors
-[ -f /etc/opt/openslx/settings ] && . /etc/opt/openslx/settings
+if test -e /etc/opt/openslx/settings; then
+ sed /etc/opt/openslx/settings -e "s,=,=\"," -e "s,$,\"," > /tmp/slxsettings;
+ . /tmp/slxsettings;
+ rm /tmp/slxsettings;
+fi;
+
# determin distribution
if [ ! -z $(which lsb_release) ]; then