summaryrefslogtreecommitdiff
path: root/backend/modules/init
diff options
context:
space:
mode:
Diffstat (limited to 'backend/modules/init')
-rw-r--r--backend/modules/init11
1 files changed, 11 insertions, 0 deletions
diff --git a/backend/modules/init b/backend/modules/init
new file mode 100644
index 0000000..f7a7628
--- /dev/null
+++ b/backend/modules/init
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+function init_installer()
+{
+ [ -f /etc/default/distro ] && . /etc/default/distro
+ export FLL_DISTRO_MODE FLL_DISTRO_NAME FLL_LIVE_USER
+ mkdir -p /live/filesystem
+ [ -d /live/filesystem/usr ] || mount -o ro /dev/loop0 /live/filesystem
+ cfg_set hostname "${FLL_DISTRO_NAME}Box"
+}
+