Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove hostname for NetworkManager + dhcpcd

Just replace nemanjan00-laptop with your hostname, move /usr/bin/dhcpcd to /usr/bin/dhcpcd_old and move dhcpcd to /usr/bin/dhcpcd

for var in "$@"; do
# Ignore known bad arguments
[ "$var" != '-h' ] && [ "$var" != 'nemanjan00-laptop' ] && ARGS+=("$var")
echo "${ARGS[@]}"
/usr/bin/dhcpcd_old "${ARGS[@]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.