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
#!/bin/bash | |
XZMAGIC=fd377a58 | |
STRUCT_POINTER_OFFSET=8 | |
file=$1 | |
declare -A word | |
map_word () { | |
word[addr]=$1 |
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
--- | |
- hosts: swdut | |
vars: | |
platform_search: ly8 | |
tasks: | |
- name: fetch grub config | |
fetch: src=/etc/default/grub dest=. | |
when: ansible_product_name | search(".*ly8.*") or | |
ansible_cmdline.cl_platform | default(omit) | search(".*ly8.*") |
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
#!/bin/bash | |
# prepare extraction directory, get and extract debian sources | |
mkdir cumulus | |
cd cumulus | |
wget http://oss.cumulusnetworks.com/CumulusLinux-1.5.2.tar.gz | |
tar xvf CumulusLinux-1.5.2.tar.gz | |
# examine installation instructions | |
cat patches/README |
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
#!/bin/bash | |
ns_name=$1 | |
iface=$2 | |
addr=$3 | |
ip netns add ${ns_name} | |
ip a flush ${iface} | |
ip l s ${iface} down | |
ip l s ${iface} netns ${ns_name} | |
ip netns exec ${ns_name} /bin/bash -c "ip addr add ${addr} dev ${iface}" | |
ip netns exec ${ns_name} /bin/bash -c "ip l s ${iface} up" |
NewerOlder