You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
387 B
Plaintext
20 lines
387 B
Plaintext
5 years ago
|
#!/bin/sh
|
||
|
|
||
|
configure_zsh() {
|
||
|
# Stop if zsh is not present
|
||
|
if [ ! -x /usr/bin/zsh ]; then
|
||
|
return
|
||
|
fi
|
||
|
# Stop if user has opted out of zsh
|
||
|
if echo "${LIVE_CONFIG_CMDLINE}" | grep -qs 'nozsh'; then
|
||
|
return
|
||
|
fi
|
||
|
chsh --shell /usr/bin/zsh kali
|
||
|
}
|
||
|
|
||
|
# Set "kali" as password for the user kali
|
||
|
usermod -p 'AqLUsDitNnTsw' kali
|
||
|
|
||
|
# Change default shell to zsh
|
||
|
configure_zsh
|