Bug 5668 - Different /etc/sysconfig/hotplug handling in /etc/hotplug/*.rc and /etc/hotplug/*.agent
: Different /etc/sysconfig/hotplug handling in /etc/hotplug/*.rc and /etc/hotpl...
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/hotplug)
: unstable
: all Linux
: P2 blocker
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2004-12-10 12:51 by
Modified: 2005-07-13 15:47 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-12-10 12:51:44
В общем всё это хотелось бы привести к одному виду...  В идеале - избавиться от
переменной HOTPLUGRC и рулить через $*START или $*PLUG...

/etc/hotplug/block.rc:
...
if [ "$HOTPLUG" == "no" ];then
    exit 0
fi
...

/etc/hotplug/block.agent:
...
if [ "$HOTPLUG" == "no" -o "$BLOCKPLUG" == "no" ];then
    exit 0
fi
...

/etc/hotplug/usb.rc:
...
if [ "$HOTPLUG" == "no" -o "$USBSTART" == "no" ];then
    exit 0
fi
...

/etc/hotplug/usb.agent:
...
if [ "$HOTPLUG" == "no" -o "$USBPLUG" == "no" ];then
    exit 0
fi
...

/etc/hotplug/sound.rc:
...
if [ "$HOTPLUG" == "no" -o "$SOUNDSTART" == "no" ];then
    exit 0
fi
...

/etc/hotplug/sound.agent:
...
if [ "$HOTPLUG" == "no" -o "$SOUNDPLUG" == "no" ];then
    exit 0
fi
...
------- Comment #1 From 2004-12-14 16:36:31 -------
Все переменные типа "START" сейчас уже не актуальны и их использование убрано в
новой сборке (2004_09_23-alt3)