Merge "Simplify glean.sh options"

This commit is contained in:
Jenkins 2017-08-17 16:21:55 +00:00 committed by Gerrit Code Review
commit 7459c73818
2 changed files with 2 additions and 7 deletions

View File

@ -18,7 +18,6 @@ set -eu
set -o pipefail
PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin
INTERFACE=${1:-} #optional, if not specified configure all available interfaces
function config_exists() {
local interface=$1
@ -65,8 +64,4 @@ if [ -n "$CONFIG_DRIVE_LABEL" ]; then
glean --ssh --skip-network --hostname
fi
if [ -n "$INTERFACE" ]; then
glean --interface "${INTERFACE}"
else
glean
fi
glean $@

View File

@ -8,7 +8,7 @@ ConditionPathExists=!/etc/sysconfig/network-scripts/ifcfg-%I
[Service]
Type=oneshot
User=root
ExecStartPre=%%GLEANSH_PATH%%/glean.sh %I
ExecStartPre=%%GLEANSH_PATH%%/glean.sh --interface %I
ExecStart=/sbin/ifup %I
RemainAfterExit=true