[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

where to move scripts from /etc/rc.boot ?



Hi people,

The hwtools package contains a simple /etc/rc.boot/hwtools script,
and the fortcoming policy will mandate its move to another directory.

I don't know if I understand all of it correctly - the script should move to
/etc/init.d/hwtools ? Should it be symlinked from /etc/rc?.d/ directories,
or just from /etc/rcS.d/ ? Is it possible to implement it with debhelper's
dh_installinit ? Should it end with .sh ? Should it parse its $1 arguments
like others do, for start|stop|restart|whatever?

Here's the current contents of the script:

#!/bin/sh

# Optimize interrupts. You might want to add parameters if you want
# to favor ttyS1 or ttyS0 or something else.
if command -v irqtune >/dev/null 2>&1; then
#   irqtune [PUT ARGS HERE]
   true
fi

# hdparm optimization
# Switches on interrupts during transfers and does multi sector transfers
if command -v hdparm >/dev/null 2>&1; then
#   hdparm -q [PUT ARGS HERE]
   true
fi

# configure QIC-02 interface
# see qic02conf(8)
# qic02conf --card= --port= --dma= --irq=

TIA!

-- 
enJoy -*/\*- don't even try to pronounce my first name


Reply to: