Revision 08abb89f example/instance-image.d/interfaces

b/example/instance-image.d/interfaces
45 45
    exit 1
46 46
fi
47 47

  
48
get_os_type
49

  
50
if [ "${NIC_COUNT}" -gt 0 -a -n "${OS_TYPE}" ] ; then
51
    ${OS_TYPE}_setup
52
else
53
    log_error "Unsupported OS_TYPE"
54
fi
55

  
56 48
# Functions
57

  
58 49
debian_setup() {
59 50
    if [ ! -d "${TARGET}/etc/network" ] ; then
60 51
        log_error "Missing target network directory"
......
134 125
    fi
135 126
}
136 127

  
128
# Main
129
get_os_type
130

  
131
if [ "${NIC_COUNT}" -gt 0 -a -n "${OS_TYPE}" ] ; then
132
    ${OS_TYPE}_setup
133
else
134
    log_error "Unsupported OS_TYPE"
135
fi
136

  
137

  
137 138
exit 0

Also available in: Unified diff