Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hook: fix vlan handling #238

Merged
merged 2 commits into from
Aug 27, 2024
Merged

Commits on Aug 17, 2024

  1. hook: vlan.sh: fix 'parse_cmdline' bug; if no hw_addr specified, defa…

    …ult ifname to eth0
    
    - `parse_cmdline` is actually `parse_kernel_cmdline_for`
    - no reason to double-newline results
    - allow for simple vlan_id=xxx without hwaddr for single-interface or first-interface VLAN scenarios
    
    Signed-off-by: Ricardo Pardini <[email protected]>
    rpardini committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    2187536 View commit details
    Browse the repository at this point in the history
  2. hook: introduce hook-ip container for vlan.sh

    - Based on linuxkit/ip pkg, sans wireguard stuff; add GNU sed needed for /proc/cmdline parsing
    
    Signed-off-by: Ricardo Pardini <[email protected]>
    rpardini committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    145a877 View commit details
    Browse the repository at this point in the history