mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-05-05 15:34:11 +02:00
Merge pull request #799 from bcambl/ifcfg_backup
use an excluded extension for ifcfg backup
This commit is contained in:
commit
5b736ae05e
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ setStaticIPv4() {
|
||||||
IPADDR=$(echo "${IPv4_address}" | cut -f1 -d/)
|
IPADDR=$(echo "${IPv4_address}" | cut -f1 -d/)
|
||||||
CIDR=$(echo "${IPv4_address}" | cut -f2 -d/)
|
CIDR=$(echo "${IPv4_address}" | cut -f2 -d/)
|
||||||
# Backup existing interface configuration:
|
# Backup existing interface configuration:
|
||||||
cp "${IFCFG_FILE}" "${IFCFG_FILE}".backup-"$(date +%Y-%m-%d-%H%M%S)"
|
cp "${IFCFG_FILE}" "${IFCFG_FILE}".pihole.orig"
|
||||||
# Build Interface configuration file:
|
# Build Interface configuration file:
|
||||||
{
|
{
|
||||||
echo "# Configured via Pi-Hole installer"
|
echo "# Configured via Pi-Hole installer"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue