add details for netiface script
Change-Id: I0b5c9286e2f94929b44581a53bf32ec7e33a6e63
This commit is contained in:
parent
565d20ee18
commit
4695aebf5f
|
@ -194,9 +194,12 @@ function configure_boot_sources {
|
|||
|
||||
function create_extra_commissioning_script {
|
||||
cat > /tmp/script.sh << 'EOF'
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
#!/bin/bash -e
|
||||
# --- Start MAAS 1.0 script metadata ---
|
||||
# name: 99-netiface-names
|
||||
# title: Network slot to port mapping
|
||||
# description: Network slot to port mapping
|
||||
# --- End MAAS 1.0 script metadata ---
|
||||
output=""
|
||||
for net_iface in /sys/class/net/ens*
|
||||
do
|
||||
|
@ -209,7 +212,7 @@ echo $output
|
|||
|
||||
EOF
|
||||
|
||||
maas "${ADMIN_USERNAME}" commissioning-scripts create name='99-netiface-names.sh' content@=/tmp/script.sh
|
||||
maas "${ADMIN_USERNAME}" commissioning-scripts create name='99-netiface-names' content@=/tmp/script.sh
|
||||
|
||||
rm /tmp/script.sh
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue