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/bash | |
# Script to create an OpenWrt LXC container in Proxmox | |
# Downloads from openwrt.org with latest stable or snapshot version, detects bridges/devices, IDs, configures network, sets optional password | |
# Pre-configures WAN/LAN in UCI, includes summary and confirmation, optional LuCI install for snapshots with apk | |
# Default resource values | |
DEFAULT_MEMORY="256" # MB | |
DEFAULT_CORES="2" # CPU cores | |
DEFAULT_STORAGE="0.5" # GB |
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/bash | |
# Create a temporary directory for downloads | |
temp_dir=$(mktemp -d) | |
trap "rm -rf $temp_dir" EXIT | |
brave_path="$(command -v brave-browser)" | |
brave_path="$(readlink -f "$brave_path")" | |
brave_path="$(dirname "$brave_path")/brave" |
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
See Comment |