summaryrefslogtreecommitdiffstats
path: root/openslx
diff options
context:
space:
mode:
authorSimon Rettberg2014-02-03 16:06:00 +0100
committerSimon Rettberg2014-02-03 16:06:00 +0100
commitb171064a05caff36a66f8bdc6073395a6dfce23e (patch)
tree148220ef43773b8665d051756b51aac0b5db61f1 /openslx
parent[rfs-s31] fix kernel printk lvl when splash is active (diff)
downloadtm-scripts-b171064a05caff36a66f8bdc6073395a6dfce23e.tar.gz
tm-scripts-b171064a05caff36a66f8bdc6073395a6dfce23e.tar.xz
tm-scripts-b171064a05caff36a66f8bdc6073395a6dfce23e.zip
[openslx] Experimental -i switch when packing sqfs to filter files from another target (saves 10MB for vmware)
Diffstat (limited to 'openslx')
-rwxr-xr-xopenslx8
1 files changed, 7 insertions, 1 deletions
diff --git a/openslx b/openslx
index e5026bab..47fc4070 100755
--- a/openslx
+++ b/openslx
@@ -207,6 +207,12 @@ read_params() {
shift
continue
;;
+ -i)
+ [ "$#" -lt "1" ] && perror "Missing argument to -i"
+ IGNORE_TARGET="$1"
+ shift
+ continue
+ ;;
*)
pwarning "Unknown flag to target: $PARAM"
print_usage
@@ -231,7 +237,7 @@ run() {
. "${SERVER_EXPORT_TARGET}" || perror "Cannot source ${SERVER_EXPORT_TARGET}"
[[ "$SERVER_SYNC" == 1 ]] && sync_remote
[[ "$SERVER_CLEAN" == 1 ]] && clean_target "$TARGET"
- [[ "$SERVER_EXPORT" == 1 ]] && export_target "$TARGET" "$SERVER_EXPORT_TYPE"
+ [[ "$SERVER_EXPORT" == 1 ]] && export_target "$TARGET" "$SERVER_EXPORT_TYPE" "$IGNORE_TARGET"
[[ "$SERVER_CONFIG" == 1 ]] && generate_config "$SERVER_CONFIG_TYPE"
pinfo "Exiting normally"
fi