#!/bin/bash DEST_PATH="/etc/NetworkManager" CONF_PATH="net-manager" ETHS_NM_DIR="/etc/NetworkManager/system-connections" for f in $(llxcfg-config list "$CONF_PATH") ; do llxcfg-config read "$CONF_PATH/$f" | skel-install -t "$DEST_PATH/$f" done # Now test if the File generated before is SRV_NIC eval $(llxcfg-showvars SRV_NIC LLXCFG_IFACE) for e in $(lliurex-net get_network_cards) ; do RC=1 lliurex-net is_wireless_card "$e" || RC=0 if [ $RC -eq 0 ] ; then if [ "$e" = "$SRV_NIC" -o "$e" = "$LLXCFG_IFACE" ] ; then echo "$ETHS_NM_DIR/Auto $e" >> remove.list else llxcfg-nm is-populate "$e" || { llxcfg-nm populate-nic-dump "$e" | skel-install "$ETHS_NM_DIR/Auto $e" ; } fi fi done exit 0