From f35b14f2ac2f3d1c18337b88cbd11ee67419df87 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 17 Sep 2012 17:59:13 +0000 Subject: use new hotplug (mga#6323) --- images/make_boot_img | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'images/make_boot_img') diff --git a/images/make_boot_img b/images/make_boot_img index 1c506b471..517d959ec 100755 --- a/images/make_boot_img +++ b/images/make_boot_img @@ -170,22 +170,7 @@ sub initrd { _ "cp -a $firm $tmp_initrd/$dest"; } - output("$tmp_initrd/hotplug", q{#!/bin/sh -if [ "$SUBSYSTEM" = firmware ] && [ "$ACTION" = add ] && [ -n "$FIRMWARE" ] ; then - if [ ! -e /sys$DEVPATH/loading ]; then - exit 1 - fi - if [ -e "/lib/firmware/$FIRMWARE" ]; then - echo 1 > /sys$DEVPATH/loading - cat "/lib/firmware/$FIRMWARE" > /sys$DEVPATH/data - echo 0 > /sys$DEVPATH/loading - exit 0 - fi - echo -1 > /sys$DEVPATH/loading - exit 1 -fi -}); - _ "chmod 755 $tmp_initrd/hotplug"; + _ "install $stage1_root/hotplug $tmp_initrd/"; symlink "../hotplug", "$tmp_initrd/sbin/hotplug"; _ "install $stage1_root/init $tmp_initrd/"; _ "install $stage1_root/stage1 $tmp_initrd/sbin/"; -- cgit v1.2.1