21 lines
550 B
SYSTEMD
21 lines
550 B
SYSTEMD
![]() |
# This file is part of systemd.
|
||
|
#
|
||
|
# systemd is free software; you can redistribute it and/or modify it
|
||
|
# under the terms of the GNU Lesser General Public License as published by
|
||
|
# the Free Software Foundation; either version 2.1 of the License, or
|
||
|
# (at your option) any later version.
|
||
|
|
||
|
[Unit]
|
||
|
Description=Set %i interface in promiscuous mode
|
||
|
Conflicts=shutdown.target
|
||
|
After=network.target
|
||
|
Before=machines.target
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
ExecStart=/usr/bin/ip link set dev %i promisc on
|
||
|
RemainAfterExit=yes
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|