mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
11 lines
165 B
Bash
Executable File
11 lines
165 B
Bash
Executable File
#!/bin/sh
|
|
|
|
hostname="$1"
|
|
|
|
echo "$hostname" > /etc/hostname
|
|
if [ -x /etc/init.d/hostname.sh ] ; then
|
|
service hostname.sh start
|
|
else
|
|
service hostname start
|
|
fi
|