Skip to content

Commit a70639f

Browse files
author
Olivier BLIN
committed
Move /etc/network/run symlink creation in ifupdown2 tmpfiles
Like /run/network, we can remove this directory symlink from codebase.
1 parent fb81223 commit a70639f

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

debian/ifupdown2.tmpfiles

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
#Type Path Mode UID GID Age Argument
44
d /run/network 0775 root root - -
5+
L /etc/network/run - - - - /run/network

etc/init.d/networking

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ ifup_hotplug () {
128128
ifupdown_init() {
129129
# remove state file at boot
130130
[ ! -e ${IFSTATE_LOCKFILE} ] && rm -f ${IFSTATE_FILE}
131-
[ ! -e /etc/network/run ] && \
132-
ln -sf /run/network /etc/network/run &>/dev/null
133131
}
134132

135133
case "$1" in

ifupdown2/sbin/start-networking

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ ifup_mgmt () {
108108
ifupdown_init() {
109109
# remove state file at boot
110110
[ ! -e ${IFSTATE_LOCKFILE} ] && rm -f ${IFSTATE_FILE}
111-
112-
[ ! -e /etc/network/run ] && \
113-
ln -sf /run/network /etc/network/run &>/dev/null
114111
}
115112

116113
case "$1" in

0 commit comments

Comments
 (0)