This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class custom_routes($routes = {}) { | |
$routes.each |String $interface, Array $ifroutes| { | |
$ifroutes.each |$i, $val| { | |
ini_setting { "route-${interface}-${i}": | |
ensure => present, | |
path => "/etc/NetworkManager/system-connections/${interface}.nmconnection", | |
section => 'ipv4', | |
setting => "route${i}", | |
value => $val, | |
notify => Exec["reload-NM-${interface}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Unraid USB Device Auto Attach Tool, Made By SebbiUltimate 2020 | |
import sys | |
import os | |
import re | |
import subprocess | |
import xml.etree.ElementTree as ET | |
def getDeviceCfg(): | |
with open(os.path.abspath(os.path.dirname(sys.argv[0]))+'/usbdevices.cfg') as f: |