32 lines
549 B
Bash
32 lines
549 B
Bash
#!/bin/sh
|
|
# Initial script for Linux Live Kit
|
|
# Author: Tomas M <http://www.linux-live.org/>
|
|
|
|
MEMORYDIR=/memory
|
|
UNIONDIR=/union
|
|
|
|
export PATH=.:/:/usr/sbin:/usr/bin:/sbin:/bin
|
|
|
|
. /.config
|
|
. /livekitlib
|
|
|
|
init_proc
|
|
init_devs
|
|
init_aufs
|
|
init_zram
|
|
init_union $MEMORYDIR $UNIONDIR
|
|
|
|
# find data dir with filesystem bundles
|
|
DATA="$(find_data $LIVEKITNAME)"
|
|
|
|
# copy to RAM if needed
|
|
|
|
# add data to union
|
|
union_append_bundles "$DATA"
|
|
|
|
# possibly switch root
|
|
|
|
# testing message
|
|
echo "If you see this message, then something went terribly wrong. Sorry!"
|
|
/bin/sh
|