:: Re: [DNG] vdev
Top Page
Delete this message
Reply to this message
Author: aitor_czr
Date:  
To: Ralph Ronnquist, richard lucassen, dng
Subject: Re: [DNG] vdev


On 08/13/2016 10:48 AM, aitor_czr wrote:
>
> On 08/13/2016 10:45 AM, aitor_czr wrote:
>> ________    *vdev-example.postinst*    _________

>>
>> #!/bin/sh
>>
>> set -e
>>
>> PREFIX=/
>>
>> if [ $# -gt 1 ]; then
>>    PREFIX=$1
>>    shift 1
>> fi

>>
>> update-rc.d -f udev remove
>> update-rc.d -f udev-finish remove
>>
>> ln -s /usr/etc/init.d/vdev /etc/init.d/vdev
>> ln -s /usr/etc/vdev /etc/vdev
>> update-rc.d -f vdev defaults
>> insserv
>>
>> cd /etc/rcS.d
>> rm S03udev S10udev-finish
>> ln -s ../init.d/vdev K02vdev
>> update-rc.d vdev enable S
>>
>> mkdir /etc/vdev/acls
>> echo \
>> "[vdev-acl]
>> uid=0" > "/etc/vdev/acls/00-whitelist-root.acl"
>>
>> update-rc.d -f udev remove
>> update-rc.d -f udev-finish remove
>> update-rc.d -f vdev defaults
>> insserv
>>
>> #DEBHELPER#
>
> Correction:
>
> ln -s ../init.d/vdev S02vdev
>
>
>    Aitor.


These lines are superfluous:

PREFIX=/

if [ $# -gt 1 ]; then
    PREFIX=$1
    shift 1
fi