summaryrefslogtreecommitdiff
path: root/backend/modules/init
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-03-17 05:07:10 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-03-17 05:07:10 +0100
commit00286a5db286e21a766b6af057052dc5d17561ad (patch)
tree7232dadf6dc3570705c3104fe0c000f480c7a0ee /backend/modules/init
downloadacritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.zip
acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.tar.gz
Initial commit
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"
+}
+