Skip to content

Commit

Permalink
Merge pull request #453 from cwh42/master
Browse files Browse the repository at this point in the history
Add proc_modules.scr from yast-installation (bsc#972310)
  • Loading branch information
cwh42 committed Mar 23, 2016
2 parents ea17f74 + 1689afb commit c567782
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
1 change: 1 addition & 0 deletions library/general/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ scrconf_DATA = \
scrconf/anyxml.scr \
scrconf/yast2_desktop.scr \
scrconf/proc_mounts.scr \
scrconf/proc_modules.scr \
scrconf/cfg_ypserv.scr \
scrconf/cfg_security.scr

Expand Down
47 changes: 47 additions & 0 deletions library/general/src/scrconf/proc_modules.scr
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/**
* File:
* proc_modules.scr
* Summary:
* SCR Agent for reading /proc/modules
* Access:
* read-only
* Authors:
* Unknown <yast2-hacker@suse.de>
* See:
* anyagent
* libscr
* Example:
* Read(.proc.modules)
* ($["aic7xxx":$["size":129600, "used":"3"],
* "autofs4":$["size":9344, "used":"4"],
* "de4x5":$["size":40320, "used":"1"],
* ...
* ])
*
* $Id$
*
* Returns a <b>map</b>i. Keys are the module names, values are maps.
* Keys of those maps are: "size", "used"
*/
.proc.modules

`ag_anyagent(
`Description (
(`File("/proc/modules")), // real file name
"#\n", // Comment
true, // read-only
(`Tuple (
`Name(`String("^ \t")),
`Whitespace (),
`Value (
`Tuple (
`size (`Number()),
`Whitespace(),
`used (`String("^ \n")),
`Optional (`String ("^\n"))
)
),
`Continue ("\n")
) )
)
)
7 changes: 7 additions & 0 deletions package/yast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Mar 23 16:26:26 UTC 2016 - cwh@suse.com

- Added proc_modules.scr from yast-installation to avoid that
yast-sound depends on yast-installation (bsc#972310)
- 3.1.180

-------------------------------------------------------------------
Wed Mar 16 17:10:37 UTC 2016 - knut.anderssen@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2
Version: 3.1.179
Version: 3.1.180
Release: 0
Url: https://github.com/yast/yast-yast2

Expand Down

0 comments on commit c567782

Please sign in to comment.