302 |
[[ $(< ${SETTINGSPATH}/confd-networking) != ${iface} ]] && continue |
[[ $(< ${SETTINGSPATH}/confd-networking) != ${iface} ]] && continue |
303 |
echo "WARNING: only importing settings for interface [ ${iface} ] !" |
echo "WARNING: only importing settings for interface [ ${iface} ] !" |
304 |
source ${network_settings}/net.${iface} || exit 1 |
source ${network_settings}/net.${iface} || exit 1 |
305 |
NETCARD_DRIVER="$(cat /etc/modules.d/net.${iface} | cut -d' ' -f3)" |
NETCARD_DRIVER="$(cat /etc/modprobe.d/net.${iface}.conf | cut -d' ' -f3)" |
306 |
|
|
307 |
mysqldo "insert into cfg_network( |
mysqldo "insert into cfg_network( |
308 |
hostname, |
hostname, |
475 |
[[ $(< ${SETTINGSPATH}/confd-networking) != ${iface} ]] && continue |
[[ $(< ${SETTINGSPATH}/confd-networking) != ${iface} ]] && continue |
476 |
echo "WARNING: only importing settings for interface [ ${iface} ] !" |
echo "WARNING: only importing settings for interface [ ${iface} ] !" |
477 |
source ${network_settings}/net.${iface} || exit 1 |
source ${network_settings}/net.${iface} || exit 1 |
478 |
NETCARD_DRIVER="$(cat /etc/modules.d/net.${iface} | cut -d' ' -f3)" |
NETCARD_DRIVER="$(cat /etc/modprobe.d/net.${iface}.conf | cut -d' ' -f3)" |
479 |
|
|
480 |
mysqldo "update cfg_network set |
mysqldo "update cfg_network set |
481 |
hostname='${ALX_DEFAULT_HOSTNAME}', |
hostname='${ALX_DEFAULT_HOSTNAME}', |
758 |
rm -rf /etc/alxconfig-ng/state |
rm -rf /etc/alxconfig-ng/state |
759 |
|
|
760 |
# clear all printers & net-shares |
# clear all printers & net-shares |
761 |
:> /etc/cups/printers.conf |
:> /etc/printcap |
|
:> /etc/samba/smb.conf |
|
762 |
|
|
763 |
# remove inetd, cups & smb from init |
# remove lprng |
764 |
rc-config del inetd &> /dev/null |
rc-config del lprng &> /dev/null |
|
rc-config del cups &> /dev/null |
|
|
rc-config del samba &> /dev/null |
|
765 |
|
|
766 |
# remove all user settings |
# remove all user settings |
767 |
[ -d ${ALX_UNPRIV_HOME} ] && rm -rf ${ALX_UNPRIV_HOME} |
[ -d ${ALX_UNPRIV_HOME} ] && rm -rf ${ALX_UNPRIV_HOME} |
771 |
|
|
772 |
# remove all old nics and modules configs |
# remove all old nics and modules configs |
773 |
find /etc/conf.d -type f -name 'net.*' | xargs rm |
find /etc/conf.d -type f -name 'net.*' | xargs rm |
774 |
find /etc/modules.d -type f -name 'net.*' | xargs rm |
find /etc/modprobe.d -type f -name 'net.*' | xargs rm |
775 |
|
|
776 |
# restore default networking |
# restore default networking |
777 |
cat ${ALX_SKELETONS}/net/net.eth0 > /etc/conf.d/net.eth0 |
cat ${ALX_SKELETONS}/net/net.eth0 > /etc/conf.d/net.eth0 |