summaryrefslogtreecommitdiffstats
path: root/remote/rootfs
diff options
context:
space:
mode:
authorManuel Schneider2014-11-26 12:21:45 +0100
committerManuel Schneider2014-11-26 12:21:45 +0100
commit63fa049f2332c1b7a19d61a4a04f537142c8a787 (patch)
tree36295b8e35844e2491f5b3d5356d3617d45f7c10 /remote/rootfs
parent[PVS2] Remove unexpected 'fi' (diff)
parent[rfs-stage31] Write IP information to /opt/openslx/config even if config.tgz ... (diff)
downloadtm-scripts-63fa049f2332c1b7a19d61a4a04f537142c8a787.tar.gz
tm-scripts-63fa049f2332c1b7a19d61a4a04f537142c8a787.tar.xz
tm-scripts-63fa049f2332c1b7a19d61a4a04f537142c8a787.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
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