I've forgotten that I've tried to fix the damn script!

This commit is contained in:
Jack L. Frost 2014-09-30 09:33:51 +04:00
parent ad435fd2fb
commit a56e4e2b29
1 changed files with 11 additions and 0 deletions

11
init.d/hostname Normal file
View 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"