better shutdown handling
This commit is contained in:
@@ -45,8 +45,12 @@ rm -Rf $INITRAMFS
|
||||
mkdir -p $INITRAMFS/{bin,dev,etc,lib,lib64,mnt,proc,root,run,sys,tmp,usr,var/log}
|
||||
ln -s bin $INITRAMFS/sbin
|
||||
|
||||
cp static/{busybox,mount.*,eject} $INITRAMFS/bin
|
||||
chmod a+x $INITRAMFS/bin/{busybox,mount.*,eject}
|
||||
cp static/busybox $INITRAMFS/bin
|
||||
cp static/eject $INITRAMFS/bin
|
||||
cp static/mount.dynfilefs $INITRAMFS/bin/@mount.dynfilefs
|
||||
cp static/mount.httpfs2 $INITRAMFS/bin/@mount.httpfs2
|
||||
cp static/mount.ntfs-3g $INITRAMFS/bin/@mount.ntfs-3g
|
||||
chmod a+x $INITRAMFS/bin/*
|
||||
|
||||
$INITRAMFS/bin/busybox | grep , | grep -v Copyright | tr "," " " | while read LINE; do
|
||||
for TOOL in $LINE; do
|
||||
@@ -128,8 +132,8 @@ touch $INITRAMFS/etc/{m,fs}tab
|
||||
|
||||
cp init $INITRAMFS
|
||||
chmod a+x $INITRAMFS/init
|
||||
cp cleanup $INITRAMFS/lib
|
||||
chmod a+x $INITRAMFS/lib/cleanup
|
||||
cp shutdown $INITRAMFS
|
||||
chmod a+x $INITRAMFS/shutdown
|
||||
ln -s ../init $INITRAMFS/bin/init
|
||||
cp ../livekitlib $INITRAMFS/lib/
|
||||
cp ../config $INITRAMFS/lib/
|
||||
|
||||
Reference in New Issue
Block a user