mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Ticket: CM-1438 Reviewed By: TBD Testing Done: - Will checkin build files after some more testing and performance numbers. It will go into the testing repo for 2.0 - All TODO items are part of the checked in TODO file
21 lines
389 B
Bash
21 lines
389 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
purge)
|
|
# Note: We don't remove /etc/network/interfaces
|
|
rm -f /etc/network/run/ifstate
|
|
|
|
if [ -L /etc/network/run ] ; then
|
|
rm -f /etc/network/run
|
|
elif [ -d /etc/network/run ] ; then
|
|
rmdir --ignore-fail-on-non-empty /etc/network/run
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
if [ "$1" = "purge" ] ; then
|
|
update-rc.d networking remove >/dev/null
|
|
fi
|