mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
busybox: platform_init device support
This commit is contained in:
parent
203000a859
commit
507105941c
@ -244,8 +244,12 @@ makeinstall_init() {
|
||||
touch $INSTALL/etc/fstab
|
||||
ln -sf /proc/self/mounts $INSTALL/etc/mtab
|
||||
|
||||
if [ -f $PROJECT_DIR/$PROJECT/initramfs/platform_init ]; then
|
||||
if [ -n "$DEVICE" -a -f $PROJECT_DIR/$PROJECT/devices/$DEVICE/initramfs/platform_init ]; then
|
||||
cp $PROJECT_DIR/$PROJECT/devices/$DEVICE/initramfs/platform_init $INSTALL
|
||||
elif [ -f $PROJECT_DIR/$PROJECT/initramfs/platform_init ]; then
|
||||
cp $PROJECT_DIR/$PROJECT/initramfs/platform_init $INSTALL
|
||||
fi
|
||||
if [ -f $INSTALL/platform_init ]; then
|
||||
chmod 755 $INSTALL/platform_init
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user