From b2b7e63a42f01e766b6567f83c5597534e2de500 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 2 Apr 2013 21:46:45 +0200 Subject: Target 'server' expects remote machine's IP/Hostname as parameter. Add fake remote machine 'local' for local usage. --- mltk | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'mltk') diff --git a/mltk b/mltk index 92be9644..35ddac5a 100755 --- a/mltk +++ b/mltk @@ -57,7 +57,7 @@ print_usage() { echo -e "" echo -e "Toolkit for creating preboot mini-linux for OpenSLX NG (mltk)" echo -e "Usage: $(basename ${SELF}) remote [-d] [-c [module]*] [-b [module]*] [-p profile]" - echo -e " $(basename ${SELF}) server [-s] [] [-e stage31|stage32|addons] [-d] [-c]" + echo -e " $(basename ${SELF}) server [-s] [] [-e stage31|stage32|addons] [-d] [-c]" echo -e "" echo -e " Mode:" echo -e " server \t server mode: packs stage3.1, stage3.2 or addons as initramfs/squashfs." @@ -78,14 +78,16 @@ print_usage() { echo -e " remote stage31 -c -b (clean all modules and build all linked modules in remote/targets/stage31 to remote/builds/stage31)" echo -e " remote stage32 -c -b rootfs_stage31 sshd (clean all modules, build base, policykit and sshd in remote/builds/stage32)" echo -e " remote stage32 -c base sshd -b sshd ldm -d (clean base and sshd, build sshd and ldm, be verbose)" - echo -e " server stage32 -e stage32 (pack stage32 as squashfs+initramfs)" - echo -e " server stage31 -c (clean stage31 build under server/remote_builds and initramfs under server/boot)" - echo -e " server addons-eexam -e addons (pack eexam-addons as squashfs)" + echo -e " server 1.2.3.4 -s (sync all builds from remote system 1.2.3.4)" + echo -e " server 1.2.3.4 stage32 -e stage32 (pack stage32 as squashfs+initramfs from remote system 1.2.3.4)" + echo -e " server 1.2.3.4 stage31 -c (clean stage31 build under server/remote_builds and initramfs under server/boot)" + echo -e " server 1.2.3.4 addons-eexam -e addons (pack eexam-addons as squashfs)" echo -e "" echo -e " Existing targets for remote are:" echo -e " $(echo $(ls ${ROOT_DIR}/remote/targets 2>/dev/null || echo "No targets for remote found."))" echo -e " Existing targets for server are:" echo -e "" + echo -e "*** Use 'local' as the remotehost if you're running the server part on the same machine as the remote part ***" echo -e "" } @@ -116,6 +118,9 @@ read_params() { case "$1" in server) MODE="SERVER" + [ "$#" -lt "2" ] && perror "Missing argument to -s (expecting remote host)" + REMOTE_IP="$2" + shift ;; remote) MODE="REMOTE" -- cgit v1.2.3-55-g7522