Skip to content

Commit

Permalink
server: register scripts service extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomaschewski committed Apr 16, 2015
1 parent b327ae8 commit 98c0d80
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions etc/server.xml.in
Expand Up @@ -50,6 +50,18 @@
<putenv name="WICKED_INTERFACE_INDEX" value="$property:index"/>
</dbus-service>

<dbus-service interface="org.opensuse.Network.Scripts">
<action name="firewallUp" command="@wicked_extensionsdir@/dispatch pre-up"/>
<action name="networkUp" command="@wicked_extensionsdir@/dispatch post-up"/>
<action name="networkDown" command="@wicked_extensionsdir@/dispatch pre-down"/>
<action name="firewallDown" command="@wicked_extensionsdir@/dispatch post-down"/>

<!-- default environment for all calls to this extension script -->
<putenv name="WICKED_OBJECT_PATH" value="$object-path"/>
<putenv name="WICKED_INTERFACE_NAME" value="$property:name"/>
<putenv name="WICKED_INTERFACE_INDEX" value="$property:index"/>
</dbus-service>

<!-- Define the scripts for updating various system settings with
data obtained from addrconf services, such as dhcp -->
<system-updater name="hostname">
Expand Down

0 comments on commit 98c0d80

Please sign in to comment.