Merge "Simplify glean.sh options"
This commit is contained in:
commit
7459c73818
|
@ -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 $@
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue