summaryrefslogtreecommitdiffstats
path: root/remote/rootfs
diff options
context:
space:
mode:
authorSimon Rettberg2014-11-24 15:08:17 +0100
committerSimon Rettberg2014-11-24 15:08:17 +0100
commit0cf505aa6b6f2f28f1be047e3e0b5bf1c51f5e2b (patch)
tree88fe5704821ed5121c809212bee1b7bbe6305352 /remote/rootfs
parent[cpu-governor] new module to set the cpu governor of clients (diff)
downloadtm-scripts-0cf505aa6b6f2f28f1be047e3e0b5bf1c51f5e2b.tar.gz
tm-scripts-0cf505aa6b6f2f28f1be047e3e0b5bf1c51f5e2b.tar.xz
tm-scripts-0cf505aa6b6f2f28f1be047e3e0b5bf1c51f5e2b.zip
[rfs-stage31] Write IP information to /opt/openslx/config even if config.tgz does not exist
Diffstat (limited to 'remote/rootfs')
-rw-r--r--remote/rootfs/rootfs-stage31/data/inc/activate_sysconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/inc/activate_sysconfig b/remote/rootfs/rootfs-stage31/data/inc/activate_sysconfig
index eb0e6d99..858102d2 100644
--- a/remote/rootfs/rootfs-stage31/data/inc/activate_sysconfig
+++ b/remote/rootfs/rootfs-stage31/data/inc/activate_sysconfig
@@ -37,7 +37,6 @@ fetch_config_files() {
update_sysconfig() {
# sanity checks
[ ! -e "${CONFIG}" ] && { echo "Cannot update. '$CONFIG' does not exist."; return 1; }
- [ ! -e "${CONFIG}.tgz" ] && { echo "Cannot update. '$CONFIG' does not exist."; return 1; }
# write IP and SLX_SERVER configuration to $CONFIG
cat >> "$CONFIG" <<HEREEND
@@ -49,6 +48,8 @@ SLX_PXE_DNS='$DNS_SERVER'
SLX_PXE_MAC='$BRIDGEMAC'
HEREEND
+ [ ! -e "${CONFIG}.tgz" ] && { echo "Cannot update. '$CONFIG' does not exist."; return 1; }
+
# setup hardware clock
. "${CONFIG}"
if [ "x$SLX_BIOS_CLOCK" == "xlocal" ]; then