summaryrefslogtreecommitdiffstats
path: root/remote/rootfs
diff options
context:
space:
mode:
authorSimon Rettberg2013-06-28 16:57:15 +0200
committerSimon Rettberg2013-06-28 16:57:15 +0200
commitd05af84714cd79b0316092a6a878a30cd601eff2 (patch)
tree4d5bebc121d60dbe8d32bff409201de75474966c /remote/rootfs
parentTrying to get systemd services in right order (diff)
downloadtm-scripts-d05af84714cd79b0316092a6a878a30cd601eff2.tar.gz
tm-scripts-d05af84714cd79b0316092a6a878a30cd601eff2.tar.xz
tm-scripts-d05af84714cd79b0316092a6a878a30cd601eff2.zip
_
Diffstat (limited to 'remote/rootfs')
-rw-r--r--remote/rootfs/rootfs-stage32/data/etc/systemd/system/download-config.service1
-rw-r--r--remote/rootfs/rootfs-stage32/data/etc/systemd/system/ntpdate.service1
-rw-r--r--remote/rootfs/rootfs-stage32/rootfs-stage32.build16
3 files changed, 10 insertions, 8 deletions
diff --git a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/download-config.service b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/download-config.service
index e60b28b7..fca8ee5b 100644
--- a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/download-config.service
+++ b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/download-config.service
@@ -4,4 +4,5 @@ DefaultDependencies=no
[Service]
Type=oneshot
+RemainAfterExit=yes
ExecStart=/opt/openslx/bin/activate-sysconfig
diff --git a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/ntpdate.service b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/ntpdate.service
index 402df6cb..4acfb046 100644
--- a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/ntpdate.service
+++ b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/ntpdate.service
@@ -2,6 +2,7 @@
Description=Update date from local time server
After=network.target
Requires=network.target
+ConditionPathExists=/run/udhcpc/network-ready
[Service]
Type=oneshot
diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.build b/remote/rootfs/rootfs-stage32/rootfs-stage32.build
index 73b1a894..39c96ccc 100644
--- a/remote/rootfs/rootfs-stage32/rootfs-stage32.build
+++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.build
@@ -14,21 +14,21 @@ build() {
FILELIST="list_binaries_and_files"
[ -e "${FILELIST}" ] && rm "${FILELIST}"
+ # Compile rdns
+ mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin"
+ gcc -o "$MODULE_BUILD_DIR/opt/openslx/bin/rdns" "$MODULE_DIR/rdns.c" || perror "Compiling rdns failed."
+
pinfo "Searching binaries from config file in system..."
for BIN in ${REQUIRED_BINARIES}
do
- BIN_LOCATION="$(which ${BIN})"
- if [ ! -z ${BIN_LOCATION} -a -e ${BIN_LOCATION} ];
- then
- get_link_chain ${BIN_LOCATION} >> "${FILELIST}"
+ [ -n "$(find "$MODULE_BUILD_DIR" -name "$BIN")" ] && continue
+ BIN_LOCATION="$(which "$BIN")"
+ if [ ! -z "$BIN_LOCATION" -a -e "$BIN_LOCATION" ]; then
+ get_link_chain "$BIN_LOCATION" >> "$FILELIST"
else
perror "${BIN} not found on the system! Please install it."
fi
done
- # Compile rdns
- mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin"
- gcc -o "$MODULE_BUILD_DIR/opt/openslx/bin/rdns" "$MODULE_DIR/rdns.c" || perror "Compiling rdns failed."
- REQUIRED_BINARIES+=" rdns"
pinfo "Searching libraries from config file in system... (could take some time)"
for LIB in ${REQUIRED_LIBRARIES}