mirror of
https://github.com/gutosie/neoboot.git
synced 2025-10-29 10:26:05 +01:00
Add files via upload
This commit is contained in:
20
NeoBoot/files/findsk.sh
Normal file
20
NeoBoot/files/findsk.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
args=`cat /proc/cmdline`
|
||||
for line in ${args};
|
||||
do
|
||||
key=${line%%=*}
|
||||
value=${line#*=}
|
||||
if [ "$key" == "root" ]; then
|
||||
ln -sf "$value" /media/root
|
||||
fi
|
||||
done
|
||||
sleep 2
|
||||
for line in ${args};
|
||||
do
|
||||
key=${line%%=*}
|
||||
value=${line#*=}
|
||||
if [ "$key" == "kernel" ]; then
|
||||
ln -sf "$value" /dev/kernel
|
||||
fi
|
||||
done
|
||||
sleep 2
|
||||
|
||||
Reference in New Issue
Block a user