diff options
Diffstat (limited to 'tools')
37 files changed, 0 insertions, 399 deletions
diff --git a/tools/dell/90-vep.chroot b/tools/dell/90-vep.chroot deleted file mode 100755 index a88a7de1..00000000 --- a/tools/dell/90-vep.chroot +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -echo I: Change the default serial baud rate. -sed -i 's/9600/115200/g' /opt/vyatta/etc/config-migrate/migrate/system/3-to-4 - -echo "ShowStatus=yes" >> /etc/systemd/system.conf - -echo I: Disable default link rule. -rm /lib/systemd/network/99-default.link -touch /lib/systemd/network/99-default.link -rm /lib/udev/rules.d/65-vyatta-net.rules -touch /lib/udev/rules.d/65-vyatta-net.rules -rm /lib/udev/rules.d/75-persistent-net-generator.rules -touch /lib/udev/rules.d/75-persistent-net-generator.rules - -echo I: Update initramfs. -update-initramfs -u diff --git a/tools/dell/vep-hook b/tools/dell/vep-hook deleted file mode 100755 index 7dcaf034..00000000 --- a/tools/dell/vep-hook +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -e - -PREREQS="" - -prereqs() { echo "$PREREQS"; } - -case "$1" in - prereqs) - prereqs - exit 0 - ;; -esac - -. /usr/share/initramfs-tools/hook-functions - -mkdir -p $DESTDIR/etc/systemd/network -cp -p /etc/systemd/network/*.link $DESTDIR/etc/systemd/network/ - -mkdir -p $DESTDIR/lib/udev/rules.d -cp -p /lib/udev/rules.d/50-firmware.rules $DESTDIR/lib/udev/rules.d/ -cp -p /lib/udev/rules.d/50-udev-default.rules $DESTDIR/lib/udev/rules.d/ -cp -p /lib/udev/rules.d/55-dm.rules $DESTDIR/lib/udev/rules.d/ -cp -p /lib/udev/rules.d/60-cdrom_id.rules $DESTDIR/lib/udev/rules.d/ -cp -p /lib/udev/rules.d/60-persistent-storage-dm.rules $DESTDIR/lib/udev/rules.d/ -cp -p /lib/udev/rules.d/60-persistent-storage.rules $DESTDIR/lib/udev/rules.d/ -cp -p /lib/udev/rules.d/75-net-description.rules $DESTDIR/lib/udev/rules.d/ -cp -p /lib/udev/rules.d/80-drivers.rules $DESTDIR/lib/udev/rules.d/ -cp -p /lib/udev/rules.d/80-net-setup-link.rules $DESTDIR/lib/udev/rules.d/ diff --git a/tools/dell/vep1400/10-eth0-000.link b/tools/dell/vep1400/10-eth0-000.link deleted file mode 100644 index db36f5ce..00000000 --- a/tools/dell/vep1400/10-eth0-000.link +++ /dev/null @@ -1,7 +0,0 @@ -[Match] -Path=pci-0000:05:00.1 -Driver=ixgbe - -[Link] -Name=eth0 -Alias=SFP+1 diff --git a/tools/dell/vep1400/10-eth1-000.link b/tools/dell/vep1400/10-eth1-000.link deleted file mode 100644 index 7bf1a175..00000000 --- a/tools/dell/vep1400/10-eth1-000.link +++ /dev/null @@ -1,7 +0,0 @@ -[Match] -Path=pci-0000:05:00.0 -Driver=ixgbe - -[Link] -Name=eth1 -Alias=SFP+2 diff --git a/tools/dell/vep1400/10-eth2-000.link b/tools/dell/vep1400/10-eth2-000.link deleted file mode 100644 index 81f3f5bc..00000000 --- a/tools/dell/vep1400/10-eth2-000.link +++ /dev/null @@ -1,7 +0,0 @@ -[Match] -Path=pci-0000:02:00.2 -Driver=igb - -[Link] -Name=eth2 -Alias=GE1 diff --git a/tools/dell/vep1400/10-eth3-000.link b/tools/dell/vep1400/10-eth3-000.link deleted file mode 100644 index fe37dfac..00000000 --- a/tools/dell/vep1400/10-eth3-000.link +++ /dev/null @@ -1,7 +0,0 @@ -[Match] -Path=pci-0000:02:00.3 -Driver=igb - -[Link] -Name=eth3 -Alias=GE2 diff --git a/tools/dell/vep1400/10-eth4-000.link b/tools/dell/vep1400/10-eth4-000.link deleted file mode 100644 index a76ecd24..00000000 --- a/tools/dell/vep1400/10-eth4-000.link +++ /dev/null @@ -1,7 +0,0 @@ -[Match] -Path=pci-0000:02:00.0 -Driver=igb - -[Link] -Name=eth4 -Alias=GE3 diff --git a/tools/dell/vep1400/10-eth5-000.link b/tools/dell/vep1400/10-eth5-000.link deleted file mode 100644 index 0e848dde..00000000 --- a/tools/dell/vep1400/10-eth5-000.link +++ /dev/null @@ -1,7 +0,0 @@ -[Match] -Path=pci-0000:02:00.1 -Driver=igb - -[Link] -Name=eth5 -Alias=GE4 diff --git a/tools/dell/vep1400/10-eth6-000.link b/tools/dell/vep1400/10-eth6-000.link deleted file mode 100644 index 10ad451d..00000000 --- a/tools/dell/vep1400/10-eth6-000.link +++ /dev/null @@ -1,7 +0,0 @@ -[Match] -Path=pci-0000:07:00.1 -Driver=ixgbe - -[Link] -Name=eth6 -Alias=GE5 diff --git a/tools/dell/vep1400/10-eth7-000.link b/tools/dell/vep1400/10-eth7-000.link deleted file mode 100644 index 57b94502..00000000 --- a/tools/dell/vep1400/10-eth7-000.link +++ /dev/null @@ -1,7 +0,0 @@ -[Match] -Path=pci-0000:07:00.0 -Driver=ixgbe - -[Link] -Name=eth7 -Alias=GE6 diff --git a/tools/dell/vep4600/10-eth0-000.link b/tools/dell/vep4600/10-eth0-000.link deleted file mode 100644 index 9b466fe8..00000000 --- a/tools/dell/vep4600/10-eth0-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:04:00.0 -Driver=igb - -[Link] -Name=eth0 diff --git a/tools/dell/vep4600/10-eth0-001.link b/tools/dell/vep4600/10-eth0-001.link deleted file mode 100644 index c60acc3a..00000000 --- a/tools/dell/vep4600/10-eth0-001.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:05:00.0 -Driver=igb - -[Link] -Name=eth0 diff --git a/tools/dell/vep4600/10-eth1-000.link b/tools/dell/vep4600/10-eth1-000.link deleted file mode 100644 index c49b7bda..00000000 --- a/tools/dell/vep4600/10-eth1-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:b8:00.0 -Driver=i40e - -[Link] -Name=eth1 diff --git a/tools/dell/vep4600/10-eth1-001.link b/tools/dell/vep4600/10-eth1-001.link deleted file mode 100644 index c32e5e86..00000000 --- a/tools/dell/vep4600/10-eth1-001.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:b6:00.0 -Driver=i40e - -[Link] -Name=eth1 diff --git a/tools/dell/vep4600/10-eth10-000.link b/tools/dell/vep4600/10-eth10-000.link deleted file mode 100644 index 414b2d30..00000000 --- a/tools/dell/vep4600/10-eth10-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:65:00.3 -Driver=i40e - -[Link] -Name=eth10 diff --git a/tools/dell/vep4600/10-eth11-000.link b/tools/dell/vep4600/10-eth11-000.link deleted file mode 100644 index 0579dcff..00000000 --- a/tools/dell/vep4600/10-eth11-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:17:00.0 -Driver=i40e - -[Link] -Name=eth11 diff --git a/tools/dell/vep4600/10-eth12-000.link b/tools/dell/vep4600/10-eth12-000.link deleted file mode 100644 index 9f9a3c0c..00000000 --- a/tools/dell/vep4600/10-eth12-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:17:00.1 -Driver=i40e - -[Link] -Name=eth12 diff --git a/tools/dell/vep4600/10-eth13-000.link b/tools/dell/vep4600/10-eth13-000.link deleted file mode 100644 index 8b8c2254..00000000 --- a/tools/dell/vep4600/10-eth13-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:17:00.2 -Driver=i40e - -[Link] -Name=eth13 diff --git a/tools/dell/vep4600/10-eth14-000.link b/tools/dell/vep4600/10-eth14-000.link deleted file mode 100644 index a746ada9..00000000 --- a/tools/dell/vep4600/10-eth14-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:17:00.3 -Driver=i40e - -[Link] -Name=eth14 diff --git a/tools/dell/vep4600/10-eth2-000.link b/tools/dell/vep4600/10-eth2-000.link deleted file mode 100644 index 7c100cee..00000000 --- a/tools/dell/vep4600/10-eth2-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:b8:00.1 -Driver=i40e - -[Link] -Name=eth2 diff --git a/tools/dell/vep4600/10-eth2-001.link b/tools/dell/vep4600/10-eth2-001.link deleted file mode 100644 index 4ff72387..00000000 --- a/tools/dell/vep4600/10-eth2-001.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:b6:00.1 -Driver=i40e - -[Link] -Name=eth2 diff --git a/tools/dell/vep4600/10-eth3-000.link b/tools/dell/vep4600/10-eth3-000.link deleted file mode 100644 index 824670ec..00000000 --- a/tools/dell/vep4600/10-eth3-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:02:00.1 -Driver=igb - -[Link] -Name=eth3 diff --git a/tools/dell/vep4600/10-eth4-000.link b/tools/dell/vep4600/10-eth4-000.link deleted file mode 100644 index ed3a80a2..00000000 --- a/tools/dell/vep4600/10-eth4-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:02:00.0 -Driver=igb - -[Link] -Name=eth4 diff --git a/tools/dell/vep4600/10-eth5-000.link b/tools/dell/vep4600/10-eth5-000.link deleted file mode 100644 index 5d21982d..00000000 --- a/tools/dell/vep4600/10-eth5-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:02:00.3 -Driver=igb - -[Link] -Name=eth5 diff --git a/tools/dell/vep4600/10-eth6-000.link b/tools/dell/vep4600/10-eth6-000.link deleted file mode 100644 index a00a0c43..00000000 --- a/tools/dell/vep4600/10-eth6-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:02:00.2 -Driver=igb - -[Link] -Name=eth6 diff --git a/tools/dell/vep4600/10-eth7-000.link b/tools/dell/vep4600/10-eth7-000.link deleted file mode 100644 index 3db698ae..00000000 --- a/tools/dell/vep4600/10-eth7-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:65:00.0 -Driver=i40e - -[Link] -Name=eth7 diff --git a/tools/dell/vep4600/10-eth8-000.link b/tools/dell/vep4600/10-eth8-000.link deleted file mode 100644 index 9858190a..00000000 --- a/tools/dell/vep4600/10-eth8-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:65:00.1 -Driver=i40e - -[Link] -Name=eth8 diff --git a/tools/dell/vep4600/10-eth9-000.link b/tools/dell/vep4600/10-eth9-000.link deleted file mode 100644 index 62ba54f2..00000000 --- a/tools/dell/vep4600/10-eth9-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:65:00.2 -Driver=i40e - -[Link] -Name=eth9 diff --git a/tools/dell/vep4600/10-unused0-000.link b/tools/dell/vep4600/10-unused0-000.link deleted file mode 100644 index 60acba9f..00000000 --- a/tools/dell/vep4600/10-unused0-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:b8:00.2 -Driver=i40e - -[Link] -Name=unused0 diff --git a/tools/dell/vep4600/10-unused0-001.link b/tools/dell/vep4600/10-unused0-001.link deleted file mode 100644 index e9014fb0..00000000 --- a/tools/dell/vep4600/10-unused0-001.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:b6:00.2 -Driver=i40e - -[Link] -Name=unused0 diff --git a/tools/dell/vep4600/10-unused1-000.link b/tools/dell/vep4600/10-unused1-000.link deleted file mode 100644 index 0860d005..00000000 --- a/tools/dell/vep4600/10-unused1-000.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:b8:00.3 -Driver=i40e - -[Link] -Name=unused1 diff --git a/tools/dell/vep4600/10-unused1-001.link b/tools/dell/vep4600/10-unused1-001.link deleted file mode 100644 index de906fcf..00000000 --- a/tools/dell/vep4600/10-unused1-001.link +++ /dev/null @@ -1,6 +0,0 @@ -[Match] -Path=pci-0000:b6:00.3 -Driver=i40e - -[Link] -Name=unused1 diff --git a/tools/dell/vep4600/99-default.link b/tools/dell/vep4600/99-default.link deleted file mode 100644 index e69de29b..00000000 --- a/tools/dell/vep4600/99-default.link +++ /dev/null diff --git a/tools/get_latest_iso.py b/tools/get_latest_iso.py deleted file mode 100755 index f8228ff2..00000000 --- a/tools/get_latest_iso.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env python3 - -import os -import sys -from lxml import html -from urllib.parse import unquote -import requests - -BASE_URL = 'https://downloads.vyos.io/' -PAGE_URL = BASE_URL+'?dir=rolling/sagitta/amd64' - - -def download(): - page = requests.get(PAGE_URL) - tree = html.fromstring(page.content) - path = '//*[@id="directory-listing"]/li/a[1]/@href' - isos = [x for x in tree.xpath(path) if os.path.splitext(x)[1] == '.iso'] - latest_iso_url = os.path.join(BASE_URL, isos[-1]) - filename = unquote(os.path.basename(latest_iso_url)) - print(filename) - if os.path.exists(filename): - print("{} already exists".format(filename)) - sys.exit(0) - r = requests.get(latest_iso_url) - with open(filename, 'wb') as fd: - for chunk in r.iter_content(chunk_size=128): - fd.write(chunk) - - -if __name__ == '__main__': - download() diff --git a/tools/gpl-header-template b/tools/gpl-header-template deleted file mode 100644 index 63be9d9a..00000000 --- a/tools/gpl-header-template +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 2016 VyOS maintainers and contributors -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 or later as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# -# File: -# Purpose: - diff --git a/tools/submod-mk b/tools/submod-mk deleted file mode 100644 index eb61da18..00000000 --- a/tools/submod-mk +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/bash -# -# **** License **** -# -# Copyright (C) 2013 Vyatta, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# -# **** End License **** - -progname=${0##*/} -shopt -s nullglob -shopt -s extglob -cd packages - -info=echo -trace= -noclean="-nc" -build="debuild -i -b -uc -us" - -declare -a submodule -declare -a debs -for debian in !(installer|linux-kernel-di-i386-2.6)/debian ; do - smod=${debian%/*} - debs=( ${smod}_*.deb ) - if [ ${#debs[@]} -eq 0 ] ; then - submodule+=( $smod ) - fi -done - -while [ $# -gt 0 ] ; do - case "$1" in - -h | --help ) - cat <<-EOF -Usage: $progname [Options] [ SUBMODULE... ] -Options: - -n | --do-nothing DonĀ“t actually remove or build anything, - just show what would be done - -q | --quiet Quiet, don't print progress info - -c | --clean Clean build - -b | --binary Skip source package build (default) - -s | --source Build binary and source packages - -S | --signed-source Build and sign packages - -If no SUBMODULE(s) given, build all checked-out submodules w/o debs. -EOF - exit 0;; - -n | --do-nothing ) - trace=echo - shift;; - -q | --quiet ) - info='#' - shift;; - -c | --clean ) - noclean= - shift;; - -b | --binary ) - shift ;; # default - -s | --source ) - build="git buildpackage -uc -us" - shift;; - -S | --signed-source ) - build="git buildpackage" - shift;; - * ) - submodule=( $@ ) - break;; - esac -done - -for (( i=0; i<${#submodule[@]}; i++)) ; do - eval $info P: ${submodule[i]} - ( cd ${submodule[i]} && eval $trace $build $noclean ) || exit $? -done diff --git a/tools/switch-remote b/tools/switch-remote deleted file mode 100755 index 328b735c..00000000 --- a/tools/switch-remote +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -HTTPS_BASE_URL="https://github.com/vyos" -SSH_BASE_URL="git@github.com:vyos" - -REMOTE=`git config remote.origin.url` - -# extract vyatta-foo.git -BASENAME=`echo $REMOTE | sed -re 's!.*/(.*)$!\1!'` -echo "Changing remote for $BASENAME" - -# Print usage if no arguments given -if [ -z "$1" ]; then - echo "Switches remote URL to SSH or HTTPS" - echo "Use \"$0 ssh\" to switch to SSH" - echo "Use \"$0 https\" to switch to HTTPS" -fi - -case $1 in - ssh) - echo "New remote: $SSH_BASE_URL/$BASENAME" - git config remote.origin.url $SSH_BASE_URL/$BASENAME - ;; - https) - echo "New remote: $HTTPS_BASE_URL/$BASENAME" - git config remote.origin.url $HTTPS_BASE_URL/$BASENAME - ;; - *) - echo "Wrong option, use \"ssh\" or \"https\"" - ;; -esac - - - - |