Kaydet (Commit) ac610401 authored tarafından Your Name's avatar Your Name

fix live

üst 505f99ed
......@@ -29,16 +29,12 @@ mount_handler(){
fi
export memtotal=$(cat /proc/meminfo | grep MemTotal | sed "s/.* //" | sed "s/ .*//g")
}
trim_valiable(){
echo "$@" | while read -n 1 c ; do
[[ "$c" =~ [^a-zA-Z0-9=iI] ]] || echo -n $c
done
}
parse_cmdline(){
for i in $(cat /proc/cmdline)
do
export $(trim_variable $i) || true
echo export $(echo $i | tr -d '.,\!\(\[\{') >> /env
done
. /env || true
}
is_file_avaiable(){
......
#!/busybox sh
[ -n "$debug" ] && /busybox ash
msg "Loading filesystem drivers"
ls /lib/modules/*/fs/ | sed "s/^/modprobe /g" | sed "s/\.ko//g" | sed "s/$/ &/g" > /fs
find /lib/modules/*/fs/ -type f | sed "s/.*\///g" | sed "s/^/modprobe /g" | sed "s/\.ko//g" | sed "s/$/ &/g" > /fs
sh /fs &>/dev/null
msg "Loading crypto drivers"
ls /lib/modules/*/crypto/ | sed "s/^/modprobe /g" | sed "s/\.ko//g" | sed "s/$/ &/g" > /crypto
find /lib/modules/*/crypto/ -type f | sed "s/.*\///g" | sed "s/^/modprobe /g" | sed "s/\.ko//g" | sed "s/$/ &/g" > /crypto
sh /crypto &>/dev/null
load_modules(){
......
......@@ -62,6 +62,8 @@ live_config(){
fi
}
live_boot(){
# load loop module
modprobe loop ||fallback_shell
[ "${sfs}" == "" ] && sfs="/main.sfs"
if ! [ "${findiso}" == "" ] ; then
msg "findiso variable available."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment