mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-23 15:06:53 +00:00
Update uninstall-tools.sh
This commit is contained in:
parent
eb1db3120d
commit
9a8a620658
@ -445,6 +445,29 @@ uninstall_log2ram() {
|
|||||||
register_tool "log2ram" false
|
register_tool "log2ram" false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
remove_persistent_network_names() {
|
||||||
|
local LINK_DIR="/etc/systemd/network"
|
||||||
|
|
||||||
|
msg_info "$(translate "Removing all .link files from") $LINK_DIR"
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
if ! ls "$LINK_DIR"/*.link >/dev/null 2>&1; then
|
||||||
|
msg_warn "$(translate "No .link files found in") $LINK_DIR"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f "$LINK_DIR"/*.link
|
||||||
|
|
||||||
|
msg_ok "$(translate "Removed all .link files from") $LINK_DIR"
|
||||||
|
msg_info "$(translate "Interface names will return to default systemd behavior.")"
|
||||||
|
register_tool "persistent_network" false
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
migrate_installed_tools() {
|
migrate_installed_tools() {
|
||||||
@ -559,6 +582,7 @@ show_uninstall_menu() {
|
|||||||
figurine) desc="Figurine";;
|
figurine) desc="Figurine";;
|
||||||
fastfetch) desc="Fastfetch";;
|
fastfetch) desc="Fastfetch";;
|
||||||
log2ram) desc="Log2ram (SSD Protection)";;
|
log2ram) desc="Log2ram (SSD Protection)";;
|
||||||
|
persistent_network) desc="Setting persistent network interfaces";;
|
||||||
*) desc="$tool";;
|
*) desc="$tool";;
|
||||||
esac
|
esac
|
||||||
menu_options+=("$tool" "$desc" "off")
|
menu_options+=("$tool" "$desc" "off")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user