Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ASUS Router NVRAM script

#!/bin/sh

    echo "Removing unused cert/key from nvram..."

    for i in 1 2 3 4 5
    do
       nvram unset vpn_crt_client$i\_ca
       nvram unset vpn_crt_client$i\_extra
       nvram unset vpn_crt_client$i\_crt
       nvram unset vpn_crt_client$i\_key
       nvram unset vpn_crt_client$i\_crl
       nvram unset vpn_crt_client$i\_static
    done

    for i in 1 2
    do
       nvram unset vpn_crt_server$i\_ca
       nvram unset vpn_crt_server$i\_dh
       nvram unset vpn_crt_server$i\_ca_key
       nvram unset vpn_crt_server$i\_extra
       nvram unset vpn_crt_server$i\_client_crt
       nvram unset vpn_crt_server$i\_crl
       nvram unset vpn_crt_server$i\_crt
       nvram unset vpn_crt_server$i\_key
       nvram unset vpn_crt_server$i\_static
       nvram unset vpn_crt_server$i\_client_key
    done

    nvram commit

    echo "done."
Comment

PREVIOUS NEXT
Code Example
Shell :: grep show location 
Shell :: ip tables Destination-NAT 
Shell :: linux iso terminal command 
Shell :: bcdedit refind windows 
Shell :: no of lines 
Shell :: MPIexec command 
Shell :: extension install 
Shell :: linux directory structure 
Shell :: anbox linux 
Shell :: set directory to be readable and writeable kali linux 
Shell :: how to install multiple linux package in one line 
Shell :: metallb loadbalancer service pending 
Shell :: kubectl get taints 
Shell :: scale variable with bc 
Shell :: screen set env variables 
Shell :: jq yq for html 
Shell :: remove admin group ubuntu 
Shell :: ubuntu 20.04 command line maky copy of folder 
Shell :: cheese not found, 
Shell :: initramfs ubuntu 20.04 
Shell :: powershell write to fgile 
Shell :: linux find multiple directories 
Shell :: can i setup 2fa for my ubuntu ssh 
Shell :: Quick install Sourcegraph using Docker 
Shell :: helm set environment variables 
Shell :: fix kali linux asking to restart services 
Shell :: get file info linux 
Shell :: file build.yml github action nodejs 
Shell :: Install lunacy on linux snap ubuntu 
Shell :: chmod root to user 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =