Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-1334

file /etc/netif.d/tap (sys-apps/openrc-0.12.3-r3) needs to be updated

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None
    • Funtoo current amd64

      /etc/netif.d/tap still uses the old tunctl command functionality, which got replaced by the /sbin/ip command from sys-apps/iproute2 package.
      The new command is being used like this:
      $ ip tuntap add dev $interface mode tap
      $ ip link set $interface address $mac_addr
      .... and so on

      To use the /sbin/ip command functionality, the new /etc/netif.d/tap file should look like this:
      #!/bin/sh

      netif_create()

      { if [ -n "$user" ]; then ip tuntap add dev $interface mode tap user $user; elif [ -n "$group" ]; then ip tuntap add dev $interface mode tap group $group; else ip tuntap add dev $interface mode tap; fi }

      netif_destroy()

      { ip link del $interface; }

      netif_pre_up()

      { if [ -n "$mac_addr" ]; then ip link set $interface address $mac_addr; fi ip link set $interface promisc on; }

            dantrell dantrell [X] (Inactive)
            havis havis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: