init style cleanup

This commit is contained in:
Ian Gulliver
2016-04-07 01:00:40 +00:00
parent ed9e49a0db
commit e8b5cdea29
3 changed files with 17 additions and 10 deletions

View File

@@ -22,6 +22,9 @@ def main():
description "Mount /systemid"
start on filesystem
task
emits systemid-ready
script
mount LABEL=SYSTEMID /systemid
@@ -29,6 +32,7 @@ script
echo ${SYSTEMID} > /etc/hostname
hostname --file /etc/hostname
grep ${SYSTEMID} /etc/hosts >/dev/null || echo "127.0.2.1 ${SYSTEMID}" >> /etc/hosts
initctl emit --no-wait systemid-ready
end script
""")