#!/bin/bash # coding=utf-8 # curl -s https://internal.up-gram.com/shell/digitalocean-ipv6.sh|bash -s $1 $2 ipv6=$1 ipv6_gateway=$2 grep IPV6_DEFAULTGW /etc/sysconfig/network-scripts/ifcfg-eth0 || cat >> /etc/sysconfig/network-scripts/ifcfg-eth0 </dev/null 2>&1 &