forked from gadmin/gsb2023
10 lines
195 B
Bash
10 lines
195 B
Bash
#!/bin/bash
|
|
|
|
if [[ $1 == "version" ]] ; then
|
|
echo 'chname v1.0 pour debian 11'
|
|
exit 0
|
|
fi
|
|
sed -i "s/bullseye/$1/g" /etc/host{s,name}
|
|
echo 'redemarrer pour finaliser le changement du nom'
|
|
exit 0
|