From da1676aa007bd113667247b1b5530d1be858507c Mon Sep 17 00:00:00 2001 From: Matt Reimer Date: Thu, 9 Feb 2006 19:00:50 +0000 Subject: irda-utils 0.9.16: write out /etc/sysconfig/irda in the init script, rather than in postinst. --- packages/irda-utils/files/init | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'packages/irda-utils/files') diff --git a/packages/irda-utils/files/init b/packages/irda-utils/files/init index f1594aae87..e7163d3ad3 100755 --- a/packages/irda-utils/files/init +++ b/packages/irda-utils/files/init @@ -1,6 +1,34 @@ #! /bin/sh -# Source IrDA networking configuration. +module_id() { + awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' /etc/sysconfig/irda + if [ $IRDA = "yes" ]; then + echo "DEVICE=$DEVICE" >> /etc/sysconfig/irda + echo "DONGLE=$DONGLE" >> /etc/sysconfig/irda + echo "DISCOVERY=$DISCOVERY" >> /etc/sysconfig/irda + fi +fi + . /etc/sysconfig/irda # Check that irda is up. -- cgit v1.2.3