init
This commit is contained in:
35
armb-not_logged_in_yet
Normal file
35
armb-not_logged_in_yet
Normal file
@@ -0,0 +1,35 @@
|
||||
#/root/.not_logged_in_yet
|
||||
# Network Settings
|
||||
PRESET_NET_CHANGE_DEFAULTS="1"
|
||||
## Ethernet
|
||||
PRESET_NET_ETHERNET_ENABLED="1" # Ignored due to WiFi
|
||||
## WiFi
|
||||
PRESET_NET_WIFI_ENABLED="1"
|
||||
#PRESET_NET_WIFI_SSID="[REDACTED]"
|
||||
PRESET_NET_WIFI_SSID="[REDACTED]"
|
||||
#PRESET_NET_WIFI_KEY="[REDACTED]"
|
||||
PRESET_NET_WIFI_KEY="[REDACTED]"
|
||||
PRESET_NET_WIFI_COUNTRYCODE="US"
|
||||
PRESET_CONNECT_WIRELESS="y"
|
||||
## Static IP
|
||||
PRESET_NET_USE_STATIC="0"
|
||||
PRESET_NET_STATIC_IP="192.168.0.100"
|
||||
PRESET_NET_STATIC_MASK="255.255.255.0"
|
||||
PRESET_NET_STATIC_GATEWAY="192.168.0.1"
|
||||
PRESET_NET_STATIC_DNS="8.8.8.8 8.8.4.4"
|
||||
|
||||
# System
|
||||
SET_LANG_BASED_ON_LOCATION="y"
|
||||
PRESET_LOCALE="en_US.UTF-8"
|
||||
PRESET_TIMEZONE="Etc/UTC"
|
||||
|
||||
# Root
|
||||
PRESET_ROOT_PASSWORD="[REDACTED]"
|
||||
PRESET_ROOT_KEY=""
|
||||
|
||||
# User
|
||||
PRESET_USER_NAME="armbian"
|
||||
PRESET_USER_PASSWORD="[REDACTED]"
|
||||
PRESET_USER_KEY=""
|
||||
PRESET_DEFAULT_REALNAME="Armbian user"
|
||||
PRESET_USER_SHELL="bash"
|
||||
22
clean_sensitive.sh
Executable file
22
clean_sensitive.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to clean sensitive WiFi credentials and passwords from configuration files
|
||||
# Usage: ./clean_sensitive.sh [filename]
|
||||
|
||||
FILE="${1:-/home/finn/code/tinyboard/armb-not_logged_in_yet}"
|
||||
|
||||
echo "Cleaning sensitive data from: $FILE"
|
||||
|
||||
# Clean WiFi SSID (both commented and uncommented lines)
|
||||
sed -i 's/^\(#*PRESET_NET_WIFI_SSID=\).*$/\1"[REDACTED]"/' "$FILE"
|
||||
|
||||
# Clean WiFi KEY (both commented and uncommented lines)
|
||||
sed -i 's/^\(#*PRESET_NET_WIFI_KEY=\).*$/\1"[REDACTED]"/' "$FILE"
|
||||
|
||||
# Clean root password
|
||||
sed -i 's/^\(PRESET_ROOT_PASSWORD=\).*$/\1"[REDACTED]"/' "$FILE"
|
||||
|
||||
# Clean user password
|
||||
sed -i 's/^\(PRESET_USER_PASSWORD=\).*$/\1"[REDACTED]"/' "$FILE"
|
||||
|
||||
echo "wiped fields"
|
||||
16
clean_wifi.sh
Executable file
16
clean_wifi.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Simple script to clean WiFi SSID and KEY from configuration files
|
||||
# Usage: ./clean_wifi.sh [filename]
|
||||
|
||||
FILE="${1:-/home/finn/code/tinyboard/armb-not_logged_in_yet}"
|
||||
|
||||
echo "Cleaning WiFi credentials from: $FILE"
|
||||
|
||||
# Clean WiFi SSID (both commented and uncommented lines)
|
||||
sed -i 's/^\(#*PRESET_NET_WIFI_SSID=\).*$/\1"[REDACTED]"/' "$FILE"
|
||||
|
||||
# Clean WiFi KEY (both commented and uncommented lines)
|
||||
sed -i 's/^\(#*PRESET_NET_WIFI_KEY=\).*$/\1"[REDACTED]"/' "$FILE"
|
||||
|
||||
echo "creds wiped"
|
||||
Reference in New Issue
Block a user