I've forgotten that I've tried to fix the damn script!
This commit is contained in:
parent
ad435fd2fb
commit
a56e4e2b29
11
init.d/hostname
Normal file
11
init.d/hostname
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
if [[ -e "/etc/hostname" ]]; then
|
||||
cfg_hostname="$(</etc/hostname)"
|
||||
else
|
||||
cfg_hostname='localhost'
|
||||
fi
|
||||
|
||||
service_type='oneshot'
|
||||
service_command='hostname'
|
||||
service_args="$cfg_hostname"
|
Loading…
Reference in New Issue
Block a user