|
103 |
while : |
103 |
while : |
104 |
do |
104 |
do |
105 |
# check if virtual interface is free |
105 |
# check if virtual interface is free |
106 |
if ! univention-config-registry shell "interfaces/${interface}_.*/.*" | cut -d_ -f3 | grep -Fqs "$virtual" |
106 |
if [ -z "$(univention-config-registry search "interfaces/${interface}_${virtual}.*"; grep -Es "interfaces/${interface}_${virtual}" $profile_file)" ] |
107 |
then |
107 |
then |
108 |
echo "interfaces/${interface}_${virtual}/netmask=$(univention-config-registry get "interfaces/$interface/netmask")" >> "$profile_file" |
108 |
echo "interfaces/${interface}_${virtual}/netmask=$(univention-config-registry get "interfaces/$interface/netmask")" >> "$profile_file" |
109 |
echo "interfaces/${interface}_${virtual}/address=$(univention-config-registry get "interfaces/$interface/address")" >> "$profile_file" |
109 |
echo "interfaces/${interface}_${virtual}/address=$(univention-config-registry get "interfaces/$interface/address")" >> "$profile_file" |