View Cord-in-a-box-patched-install
{
sudo sed -i -E 's/\/(([a-z]+.)?archive|security)?.ubuntu.com|\/free.nchc.org.tw\//\/140.113.60.195\//g' /etc/apt/sources.list
sudo apt update
sudo apt install -y git
git clone --depth 1 https://github.com/breezestars/cord-tools
./cord-tools/ciab.sh
bash ./cord-in-a-box.sh -c
}
View Cord-in-a-box-patched-install
curl --compressed -o cord-in-a-box.sh https://raw.githubusercontent.com/opencord/cord/cord-2.0/scripts/cord-in-a-box.sh
curl --compressed -o patch_ciab https://raw.githubusercontent.com/breezestars/cord-tools/master/patch/patch_ciab
sudo sed -i 's/free.nchc.org.tw/140.113.60.195/g' /etc/apt/sources.list
patch < patch_ciab
bash ./cord-in-a-box.sh -c
View gist:1cec0dd60527b408b681964cc1f1daff
# First, enable SSH in the Administration->System tab.
# Then log in to the device.
# Verify that https_crt_save is off
admin@RT-N66U:/tmp/home/root# nvram get https_crt_save
0
# Enable https_crt_save and verify that it was set correctly
admin@RT-N66U:/tmp/home/root# nvram set https_crt_save=1
admin@RT-N66U:/tmp/home/root# nvram get https_crt_save
View vps coupon.md
View make.conf
WITH_PKGNG=yes
NO_INET6?=YES
NO_PROFILE?=YES
CPUTYPE=native
CFLAGS+=-march=native -O2 -pipe -fno-strict-aliasing
COPTFLAGS+=-O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing
OPTIMIZED_CFLAGS?=YES
BUILD_OPTIMIZED?=YES
WITH_CPUFLAGS?=YES
WITH_OPTIMIZED_CFLAGS?=YES
View extc++.h
// C++ includes used for precompiling extensions -*- C++ -*-
// Copyright (C) 2006-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.