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/sh | |
########################################################################################## | |
# Script to be placed in /etc/initramfs-tools/hooks/ipv6 | |
# | |
# These initramfs IPv6 scripts were originally made by zajdee, and were modified by Someguy123 | |
# at Privex Inc. ( https://www.privex.io ) to fix some issues and add debug logging. | |
# | |
# It can be found online here: https://gist.github.com/Someguy123/8092bdc9834aa210fb4bd1523e9a1c38 | |
# | |
# (Original Gist this was based off of (broken script!): https://gist.github.com/zajdee/65aad61f35d3a63c56c7d1cc76c22e14) |
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/perl | |
use strict; | |
use Fcntl qw(SEEK_SET); | |
sub deswappify { | |
my $pid = shift; | |
my $fh = undef; | |
my $start_addr; |