On Wed, Jan 18, 2012 at 3:44 PM, Ben Pfaff <[email protected]> wrote:

> On Wed, Jan 18, 2012 at 03:39:06PM -0800, Ansis Atteka wrote:
> > But can I assume that it is safe to hardcode in postinst the
> > /etc/init.d/openvswitch-switch path? I guess that the debhelper
> > gets it from ./configure, right? Will look into this...
>
> The #DEBHELPER# block currently expands to:
>
>    # Automatically added by dh_installinit
>    if [ -x "/etc/init.d/openvswitch-switch" ]; then
>
Yes, I was being cautious whether this path above could
expand to something else if debhelper would not be generating
this section anymore (e.g. if paths were overriden with ./configure).

Also If I would use --no-start then I guess I would need to add some
more additional code in prerm.




           update-rc.d openvswitch-switch defaults >/dev/null
>            if [ -n "$2" ]; then
>                    _dh_action=restart
>            else
>                    _dh_action=start
>            fi
>            if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
>                    invoke-rc.d openvswitch-switch $_dh_action ||
> init_script_error
>            else
>                    /etc/init.d/openvswitch-switch $_dh_action ||
> init_script_error
>            fi
>    fi
>    # End automatically added section
>
>
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to