Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522898 - sys-block/vblade - /etc/init.d/vblade: add support for options passed to vblade
Summary: sys-block/vblade - /etc/init.d/vblade: add support for options passed to vblade
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-09-15 18:00 UTC by Mark Tomich
Modified: 2017-08-14 13:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
vblade.patch (vblade.patch,2.95 KB, patch)
2014-09-15 18:05 UTC, Mark Tomich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Tomich 2014-09-15 18:00:55 UTC
when attempting to add a MAC address restriction to /etc/conf.d/vblade, the init script fails with "number is negative" (when attempting to parse the "-m" option).

Reproducible: Always

Steps to Reproduce:
1. emerge sys-block/vblade
2. add the following to /etc/conf.d/vblade: config_vblade0="-m 00:17:31:54:48:52 0 0 eth0 /dev/sda1"
3. /etc/init.d/vblade.vblade0 start
Actual Results:  
notice the error message regarding the number format.

Expected Results:  
vblade daemon starts with the given arguments passed to the daemon.

I will attach a patch shortly.
Comment 1 Mark Tomich 2014-09-15 18:05:52 UTC
Created attachment 384802 [details, diff]
vblade.patch
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-08-14 13:37:13 UTC
commit cc62e07606d5568e34dde4c9343e894044587214
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Mon Aug 14 15:31:37 2017

    sys-block/vblade: Bump to version 23 (bug #536330).
    
    Added new init script provided by Mark Tomich in bug #522898.
    
    Package-Manager: Portage-2.3.7, Repoman-2.3.3