home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd2.bin / suse / inst-sys / lib / YaST2 / scrconf / anyagent.ycp next >
Encoding:
Text File  |  2000-03-30  |  27.3 KB  |  1,038 lines

  1. {
  2.  
  3.  
  4. # chap_secrets.scr
  5.  
  6. MountAgent (`anyagent(
  7.    ``Description (
  8.    ``File("/etc/ppp/chap-secrets"),   // real file name
  9.    "#\n",         // Comment
  10.    false,         // read-only
  11.    ``List(
  12.       Tuple(
  13.          `client (String("^ \t")),
  14.           Separator ("\t "),
  15.          `server (String("^ \t")),
  16.           Separator ("\t "),
  17.          `secret (String("^\n"))
  18.       ),
  19.       "\n"
  20.    )
  21. )), .etc.ppp.chap_secrets);
  22.  
  23. # etc_fstab.scr
  24.  
  25.   MountAgent (`anyagent(
  26.     ``Description (
  27.       ``File("/mnt/etc/fstab"),    // real file name
  28.       "#\n",            // Comment
  29.       false,            // read-only
  30.       ``List (
  31.     Tuple (
  32.       `spec (String("^\t ")),
  33.       Separator ("\t "),
  34.       `file (String("^\t ")),
  35.       Separator ("\t "),
  36.       `vfstype (String("^\t ")),
  37.       Separator ("\t "),
  38.       `mntops (String("^ \t\n")),
  39.       Optional(Whitespace()),
  40.       Optional(`freq (Number())),
  41.       Optional(Whitespace()),
  42.       Optional(`passno (Number()))
  43.     ),
  44.     "\n"
  45.       )
  46.     )
  47.   ), .mnt.etc.fstab);
  48.  
  49. # etc_hosts.scr
  50.  
  51.   MountAgent (`anyagent(
  52.     ``Description (
  53.       ``File("/etc/hosts"),    // real file name
  54.       "#\n",            // Comment
  55.       false,            // read-only
  56.       ``List (
  57.     Tuple (
  58.       `ip4 (Ip4Number()),
  59.       Separator ("\t "),
  60.       `hostnames (List (Hostname(), Whitespace()))
  61.     ),
  62.     "\n"
  63.       )
  64.     )
  65.   ), .etc.hosts);
  66.  
  67. # etc_install_inf.scr
  68.  
  69.   MountAgent (`anyagent(
  70.     ``Description (
  71.       ``File("/etc/install.inf"),    // real file name
  72.       "#\n",                // Comment
  73.       true,                // read-only
  74.       ``Tuple (
  75.       Choice (
  76.        [ "Language:",    Sequence (Whitespace (), `language (String("^\n")))],
  77.        [ "Keytable:",    Sequence (Whitespace (), `keytable (String("^\n")))],
  78.        [ "Keyboard:",    Sequence (Whitespace (), `keyboard (String("^\n")))],
  79.        [ "Display:",    Sequence (Whitespace (), `display(String("^\n")))],
  80.        [ "Bootmode:",    Sequence (Whitespace (), `bootmode(String("^\n")))],
  81.        [ "Sourcemounted:",    Sequence (Whitespace (), `sourcemounted(String("^\n")))],
  82.        [ "Cdrom:",        Sequence (Whitespace (), `cdrom(String("^\n")))],
  83.        [ "Partition:",    Sequence (Whitespace (), `partition(String("^\n")))],
  84.        [ "Fstyp:",        Sequence (Whitespace (), `fstype(String("^\n")))],
  85.        [ "Netdevice:",    Sequence (Whitespace (), `netdevice(String("^\n")))],
  86.        [ "IP:",         Sequence (Whitespace (), `ip(String("^\n")))],
  87.        [ "Netmask:",    Sequence (Whitespace (), `netmask(String("^\n")))],
  88.        [ "Gateway:",    Sequence (Whitespace (), `gateway(String("^\n")))],
  89.        [ "Nameserver:",    Sequence (Whitespace (), `nameserver(String("^\n")))],
  90.        [ "Server:",        Sequence (Whitespace (), `server(String("^\n")))],
  91.        [ "Serverdir:",    Sequence (Whitespace (), `serverdir(String("^\n")))],
  92.        [ "alias ",        Sequence (Whitespace (), `alias(String("^\n")))],
  93.        [ "Machinename:",    Sequence (Whitespace (), `machinename(String("^\n")))],
  94.        [ "Domain:",        Sequence (Whitespace (), `domain(String("^\n")))],
  95.        [ "SMP:",        Sequence (Whitespace (), `smp(String("^\n")))],
  96.        [ "Mousedevice:",    Sequence (Whitespace (), `mouse_device(String("^\n")))],
  97.        [ "Mousetype:",    Sequence (Whitespace (), `mouse_type(String("^\n")))],
  98.        [ "INITRD_MODULES=",    Sequence (Optional(Whitespace()), Optional ("\""),
  99.                              Optional (Whitespace()),
  100.                              `initrd_modules(List(String("^ \""), " ")),
  101.                              Optional ("\""))
  102.        ],
  103.        [ "options ",    Sequence (Whitespace (), `options(String("^\n")))],
  104.        [ "Floppydisk:",    Sequence (Whitespace (), `floppy_disk(String("^\n")))],
  105.        [ "YaST2update:",    Sequence (Whitespace (), `yast2_update(String("^\n")))],
  106.        [ "Textmode:",    Sequence (Whitespace (), `textmode(String("^\n")))],
  107.        [ "Framebuffer:",    Sequence (Whitespace (), `framebuffer(String("^\n")))],
  108.        [ "Locale:",        Sequence (Whitespace (), `llocale(String("^\n")))],
  109.        [ "Font:",        Sequence (Whitespace (), `font(String("^\n")))],
  110.        [ "Unicodemap:",    Sequence (Whitespace (), `unicodemap(String("^\n")))],
  111.        [ "Screenmap:",    Sequence (Whitespace (), `screenmap(String("^\n")))],
  112.        [ "Fontmagic:",    Sequence (Whitespace (), `fontmagic(String("^\n")))],
  113.        [ "HasPCMCIA:",    Sequence (Whitespace (), `haspcmcia(String("^\n")))],
  114.        [ "USB:",        Sequence (Whitespace (), `usb(String("^\n")))],
  115.        [ "YaST2serial:",    Sequence (Whitespace (), `serial(String("^\n")))],
  116.        [ "Manual:",        Sequence (Whitespace (), `manual(String("^\n")))],
  117.        [ "",        `unknown (String ("^\n"))]
  118.       ),
  119.       Continue ("\n")
  120.     )
  121.     )
  122.   ), .etc.install_inf);
  123.  
  124. # etc_passwd.scr
  125.  
  126.   MountAgent (`anyagent(
  127.     ``Description (
  128.       ``File("/etc/passwd"),    // real filename
  129.       "#",            // Comment
  130.       true,
  131.       ``List (
  132.     Or (
  133.       Tuple (
  134.       `username (String("+")),
  135.       ":",
  136.       `password (String ("")),
  137.       ":",
  138.       `uid (String ("")),
  139.       ":",
  140.       `gid (String ("")),
  141.       ":",
  142.       `fullname (String ("")),
  143.       ":",
  144.       `home (String ("")),
  145.       ":",
  146.       `shell (String (""))
  147.     ),
  148.  
  149.     Tuple (
  150.       `username (Username()),
  151.       ":",
  152.       `password (Or (String ("^:"), "")),
  153.       ":",
  154.       `uid (Number ()),
  155.       ":",
  156.       `gid (Number ()),
  157.       ":",
  158.       `fullname (Or (String ("^:"), "")),
  159.       ":",
  160.       `home (String ("^:")),
  161.       ":",
  162.       `shell (String ("^\n"))
  163.     )),
  164.     "\n"
  165.       )
  166.     )),
  167.     .etc.passwd
  168.   );
  169.  
  170. # etc_printcap.scr
  171.  
  172.   MountAgent(`anyagent(
  173.     ``Description (
  174.       ``File("/etc/printcap"),  // real file name
  175.       "#\n",            // Comment
  176.       true,            // read-only
  177.       ``List (
  178.         Tuple (
  179.           `names ( List( String("^|:"), "|")),
  180.           Optional(":\\\n"),
  181.           Optional(Separator("\t ")),
  182.           ":",
  183.           `options (
  184.             List (
  185.               Tuple(
  186.                 `option (String("^:#=@\n")),
  187.                 `value (Or(String("^:\n"), "")),
  188.                 Optional(":\\\n"),
  189.                 Optional(Separator("\t "))
  190.               ), ":"
  191.             )
  192.           )
  193.         ),
  194.         "\n"
  195.     ))), .etc.printcap);
  196.  
  197. # i4l_hw.scr
  198.  
  199. MountAgent (`anyagent(
  200.    ``Description (
  201.    ``File("/etc/rc.config.d/i4l_hardware.rc.config"),   // real file name
  202.    `Fillup ("#\n"),    // Comment for Fillup
  203.    false,         // read-only
  204.    ``List(
  205.       Tuple(
  206.     Fillup(),
  207.         `key (String("^=")),
  208.         Separator ("="),
  209.         Optional(`value (String("^\n")))
  210.       ),
  211.       "\n"
  212.    )
  213. )), .etc.i4l_hw);
  214.  
  215. # i4l_rc.scr
  216.  
  217. MountAgent (`anyagent(
  218.    ``Description (
  219.    ``File("/etc/rc.config.d/i4l.rc.config"),   // real file name
  220.    `Fillup("#\n"),         // Comment
  221.    false,         // read-only
  222.    ``List(
  223.       Tuple(
  224.     Fillup(),
  225.     `key (String("^=")),
  226.     Separator ("="),
  227.     Optional(`value (String("^\n")))
  228.       ),
  229.       "\n"
  230.    )
  231. )), .etc.i4l);
  232.  
  233. # ippp_options.scr
  234.  
  235. MountAgent (`anyagent(
  236.     ``Description (
  237.     ``File("/etc/ppp/options.ippp0"),    // real file name
  238.     `Fillup("#\n"),            // Comment
  239.     false,            // read-only
  240.     ``List(
  241.         Tuple(
  242.             Fillup(),
  243.             `key (String("^ \n")),
  244.              Optional(Separator (" ")),
  245.             Optional(`value (String("^\n")))
  246.         ),
  247.         "\n"
  248.     )
  249. )), .etc.ppp.ioptions);
  250.  
  251. # lib_iso3166.scr
  252.  
  253.   MountAgent (`anyagent(
  254.     ``Description (
  255.       ``File("/usr/share/zoneinfo/iso3166.tab"),        // real file name
  256.       "#\n",            // Comment
  257.       true,            // read-only
  258.       ``Tuple (Name (String("^ \t")), Whitespace(), Value (String ("^\n")), Continue ("\n"))
  259.     )
  260.   ), .lib.iso3166);
  261.  
  262. # lib_zoneinfo.scr
  263.  
  264.   MountAgent (`anyagent(
  265.     ``Description (
  266.       ``Run("cat /usr/share/zoneinfo/zone.tab | sort +2"),        // real file name
  267.       "#\n",            // Comment
  268.       true,            // read-only
  269.       ``List (
  270.       Tuple (
  271.         `code(String("^ \t")),
  272.         Whitespace (),
  273.         `coord(String("^ \t")),
  274.         Whitespace (),
  275.         `dir(String("^/")),
  276.         "/",
  277.         `file(String("^ \t\n")),
  278.         Optional(Whitespace ()),
  279.         Optional(`comment (String ("^\n")))
  280.       ),
  281.     "\n")
  282.      )
  283.   ), .lib.zoneinfo);
  284.  
  285. # lspci.scr
  286.  
  287. MountAgent(`anyagent(
  288.    ``Description (
  289.         ``Run ("/sbin/lspci"), // real file name
  290.         "",            // comment
  291.         true,        // read only
  292.         ``List(
  293.            Tuple (
  294.               `slot (String ("^ ")),
  295.               Whitespace (),
  296.               `class (String ("^:")),
  297.               Separator (":"),
  298.               Whitespace (),
  299.               `rest (String ("^\n"))
  300.               ),
  301.            String ("\n")
  302.            )
  303.     )
  304.    ), .sbin.lspci);
  305.  
  306. # pap_secrets.scr
  307.  
  308. MountAgent (`anyagent(
  309.    ``Description (
  310.    ``File("/etc/ppp/pap-secrets"),   // real file name
  311.    "#\n",         // Comment
  312.    false,         // read-only
  313.    ``List(
  314.       Tuple(
  315.          `client (String("^ \t")),
  316.           Separator ("\t "),
  317.          `server (String("^ \t")),
  318.           Separator ("\t "),
  319.          `secret (String("^\n"))
  320.       ),
  321.       "\n"
  322.    )
  323. )), .etc.ppp.pap_secrets);
  324.  
  325. # pdisk.scr
  326.  
  327.  
  328.   MountAgent (`anyagent(``Description (
  329.   ``Run("/lib/YaST2/bin/pdisk -l /dev/hda"),
  330.   "\n", true,
  331.   ``List (
  332.       Choice (
  333.     [Sequence ("Partition", String("^\n")), Skip ()],
  334.     [Sequence (" #:", String("^\n")), Skip ()],
  335.     [Whitespace(), Tuple (`nr(Number()), ":", Optional(Whitespace()),
  336.             `type(String("^ *")),
  337.             Optional(`flag("*")),
  338.             Optional(Whitespace()),"'",
  339.             Optional(`name(String("^'", " "))),"'", Optional(Whitespace()),
  340.             `length(Number()),
  341.             " @ ",
  342.             `base(Number()),
  343.             Optional(String("^\n"))
  344.               )
  345.         ],
  346.     ["Device block size=", Tuple (
  347.               `bytes_per_unit(Number ()),
  348.               ", Number of Blocks=",
  349.               `disk_size (Number ()),
  350.               String ("^\n")
  351.             )],
  352.     [Sequence ("DeviceType=", String("^\n")), Skip ()],
  353.     [Sequence ("Drivers", String("^\n")), Skip ()],
  354.     ["D", Sequence (Number(),": @", String("^\n"))]
  355.       ),
  356.       "\n"
  357.   ))), .pdisk.hda);
  358.  
  359.   MountAgent (`anyagent(``Description (
  360.   ``Run("/lib/YaST2/bin/pdisk -l /dev/hdb"),
  361.   "\n", true,
  362.   ``List (
  363.       Choice (
  364.     [Sequence ("Partition", String("^\n")), Skip ()],
  365.     [Sequence (" #:", String("^\n")), Skip ()],
  366.     [Whitespace(), Tuple (`nr(Number()), ":", Optional(Whitespace()),
  367.             `type(String("^ *")),
  368.             Optional(`flag("*")),
  369.             Optional(Whitespace()),"'",
  370.             Optional(`name(String("^'", " "))),"'", Optional(Whitespace()),
  371.             `length(Number()),
  372.             " @ ",
  373.             `base(Number()),
  374.             Optional(String("^\n"))
  375.               )
  376.         ],
  377.     ["Device block size=", Tuple (
  378.               `bytes_per_unit(Number ()),
  379.               ", Number of Blocks=",
  380.               `disk_size (Number ()),
  381.               String ("^\n")
  382.             )],
  383.     [Sequence ("DeviceType=", String("^\n")), Skip ()],
  384.     [Sequence ("Drivers", String("^\n")), Skip ()],
  385.     ["D", Sequence (Number(),": @", String("^\n"))]
  386.       ),
  387.       "\n"
  388.   ))), .pdisk.hdb);
  389.  
  390.  
  391.   MountAgent (`anyagent(``Description (
  392.   ``Run("/lib/YaST2/bin/pdisk -l /dev/hdc"),
  393.   "\n", true,
  394.   ``List (
  395.       Choice (
  396.     [Sequence ("Partition", String("^\n")), Skip ()],
  397.     [Sequence (" #:", String("^\n")), Skip ()],
  398.     [Whitespace(), Tuple (`nr(Number()), ":", Optional(Whitespace()),
  399.             `type(String("^ *")),
  400.             Optional(`flag("*")),
  401.             Optional(Whitespace()),"'",
  402.             Optional(`name(String("^'", " "))),"'", Optional(Whitespace()),
  403.             `length(Number()),
  404.             " @ ",
  405.             `base(Number()),
  406.             Optional(String("^\n"))
  407.               )
  408.         ],
  409.     ["Device block size=", Tuple (
  410.               `bytes_per_unit(Number ()),
  411.               ", Number of Blocks=",
  412.               `disk_size (Number ()),
  413.               String ("^\n")
  414.             )],
  415.     [Sequence ("DeviceType=", String("^\n")), Skip ()],
  416.     [Sequence ("Drivers", String("^\n")), Skip ()],
  417.     ["D", Sequence (Number(),": @", String("^\n"))]
  418.       ),
  419.       "\n"
  420.   ))), .pdisk.hdc);
  421.  
  422.  
  423.   MountAgent (`anyagent(``Description (
  424.   ``Run("/lib/YaST2/bin/pdisk -l /dev/hdd"),
  425.   "\n", true,
  426.   ``List (
  427.       Choice (
  428.     [Sequence ("Partition", String("^\n")), Skip ()],
  429.     [Sequence (" #:", String("^\n")), Skip ()],
  430.     [Whitespace(), Tuple (`nr(Number()), ":", Optional(Whitespace()),
  431.             `type(String("^ *")),
  432.             Optional(`flag("*")),
  433.             Optional(Whitespace()),"'",
  434.             Optional(`name(String("^'", " "))),"'", Optional(Whitespace()),
  435.             `length(Number()),
  436.             " @ ",
  437.             `base(Number()),
  438.             Optional(String("^\n"))
  439.               )
  440.         ],
  441.     ["Device block size=", Tuple (
  442.               `bytes_per_unit(Number ()),
  443.               ", Number of Blocks=",
  444.               `disk_size (Number ()),
  445.               String ("^\n")
  446.             )],
  447.     [Sequence ("DeviceType=", String("^\n")), Skip ()],
  448.     [Sequence ("Drivers", String("^\n")), Skip ()],
  449.     ["D", Sequence (Number(),": @", String("^\n"))]
  450.       ),
  451.       "\n"
  452.   ))), .pdisk.hdd);
  453.  
  454.  
  455.  
  456.   MountAgent (`anyagent(``Description (
  457.   ``Run("/lib/YaST2/bin/pdisk -l /dev/sda"),
  458.   "\n", true,
  459.   ``List (
  460.       Choice (
  461.     [Sequence ("Partition", String("^\n")), Skip ()],
  462.     [Sequence (" #:", String("^\n")), Skip ()],
  463.     [Whitespace(), Tuple (`nr(Number()), ":", Optional(Whitespace()),
  464.             `type(String("^ *")),
  465.             Optional(`flag("*")),
  466.             Optional(Whitespace()),"'",
  467.             Optional(`name(String("^'", " "))),"'", Optional(Whitespace()),
  468.             `length(Number()),
  469.             " @ ",
  470.             `base(Number()),
  471.             Optional(String("^\n"))
  472.               )
  473.         ],
  474.     ["Device block size=", Tuple (
  475.               `bytes_per_unit(Number ()),
  476.               ", Number of Blocks=",
  477.               `disk_size (Number ()),
  478.               String ("^\n")
  479.             )],
  480.     [Sequence ("DeviceType=", String("^\n")), Skip ()],
  481.     [Sequence ("Drivers", String("^\n")), Skip ()],
  482.     ["D", Sequence (Number(),": @", String("^\n"))]
  483.       ),
  484.       "\n"
  485.   ))), .pdisk.sda);
  486.  
  487.   MountAgent (`anyagent(``Description (
  488.   ``Run("/lib/YaST2/bin/pdisk -l /dev/sdb"),
  489.   "\n", true,
  490.   ``List (
  491.       Choice (
  492.     [Sequence ("Partition", String("^\n")), Skip ()],
  493.     [Sequence (" #:", String("^\n")), Skip ()],
  494.     [Whitespace(), Tuple (`nr(Number()), ":", Optional(Whitespace()),
  495.             `type(String("^ *")),
  496.             Optional(`flag("*")),
  497.             Optional(Whitespace()),"'",
  498.             Optional(`name(String("^'", " "))),"'", Optional(Whitespace()),
  499.             `length(Number()),
  500.             " @ ",
  501.             `base(Number()),
  502.             Optional(String("^\n"))
  503.               )
  504.         ],
  505.     ["Device block size=", Tuple (
  506.               `bytes_per_unit(Number ()),
  507.               ", Number of Blocks=",
  508.               `disk_size (Number ()),
  509.               String ("^\n")
  510.             )],
  511.     [Sequence ("DeviceType=", String("^\n")), Skip ()],
  512.     [Sequence ("Drivers", String("^\n")), Skip ()],
  513.     ["D", Sequence (Number(),": @", String("^\n"))]
  514.       ),
  515.       "\n"
  516.   ))), .pdisk.sdb);
  517.  
  518.  
  519.   MountAgent (`anyagent(``Description (
  520.   ``Run("/lib/YaST2/bin/pdisk -l /dev/sdc"),
  521.   "\n", true,
  522.   ``List (
  523.       Choice (
  524.     [Sequence ("Partition", String("^\n")), Skip ()],
  525.     [Sequence (" #:", String("^\n")), Skip ()],
  526.     [Whitespace(), Tuple (`nr(Number()), ":", Optional(Whitespace()),
  527.             `type(String("^ *")),
  528.             Optional(`flag("*")),
  529.             Optional(Whitespace()),"'",
  530.             Optional(`name(String("^'", " "))),"'", Optional(Whitespace()),
  531.             `length(Number()),
  532.             " @ ",
  533.             `base(Number()),
  534.             Optional(String("^\n"))
  535.               )
  536.         ],
  537.     ["Device block size=", Tuple (
  538.               `bytes_per_unit(Number ()),
  539.               ", Number of Blocks=",
  540.               `disk_size (Number ()),
  541.               String ("^\n")
  542.             )],
  543.     [Sequence ("DeviceType=", String("^\n")), Skip ()],
  544.     [Sequence ("Drivers", String("^\n")), Skip ()],
  545.     ["D", Sequence (Number(),": @", String("^\n"))]
  546.       ),
  547.       "\n"
  548.   ))), .pdisk.sdc);
  549.  
  550.  
  551.   MountAgent (`anyagent(``Description (
  552.   ``Run("/lib/YaST2/bin/pdisk -l /dev/sdd"),
  553.   "\n", true,
  554.   ``List (
  555.       Choice (
  556.     [Sequence ("Partition", String("^\n")), Skip ()],
  557.     [Sequence (" #:", String("^\n")), Skip ()],
  558.     [Whitespace(), Tuple (`nr(Number()), ":", Optional(Whitespace()),
  559.             `type(String("^ *")),
  560.             Optional(`flag("*")),
  561.             Optional(Whitespace()),"'",
  562.             Optional(`name(String("^'", " "))),"'", Optional(Whitespace()),
  563.             `length(Number()),
  564.             " @ ",
  565.             `base(Number()),
  566.             Optional(String("^\n"))
  567.               )
  568.         ],
  569.     ["Device block size=", Tuple (
  570.               `bytes_per_unit(Number ()),
  571.               ", Number of Blocks=",
  572.               `disk_size (Number ()),
  573.               String ("^\n")
  574.             )],
  575.     [Sequence ("DeviceType=", String("^\n")), Skip ()],
  576.     [Sequence ("Drivers", String("^\n")), Skip ()],
  577.     ["D", Sequence (Number(),": @", String("^\n"))]
  578.       ),
  579.       "\n"
  580.   ))), .pdisk.sdd);
  581.  
  582.  
  583.   MountAgent (`anyagent(``Description (
  584.   ``Run("/lib/YaST2/bin/pdisk -l /dev/sde"),
  585.   "\n", true,
  586.   ``List (
  587.       Choice (
  588.     [Sequence ("Partition", String("^\n")), Skip ()],
  589.     [Sequence (" #:", String("^\n")), Skip ()],
  590.     [Whitespace(), Tuple (`nr(Number()), ":", Optional(Whitespace()),
  591.             `type(String("^ *")),
  592.             Optional(`flag("*")),
  593.             Optional(Whitespace()),"'",
  594.             Optional(`name(String("^'", " "))),"'", Optional(Whitespace()),
  595.             `length(Number()),
  596.             " @ ",
  597.             `base(Number()),
  598.             Optional(String("^\n"))
  599.               )
  600.         ],
  601.     ["Device block size=", Tuple (
  602.               `bytes_per_unit(Number ()),
  603.               ", Number of Blocks=",
  604.               `disk_size (Number ()),
  605.               String ("^\n")
  606.             )],
  607.     [Sequence ("DeviceType=", String("^\n")), Skip ()],
  608.     [Sequence ("Drivers", String("^\n")), Skip ()],
  609.     ["D", Sequence (Number(),": @", String("^\n"))]
  610.       ),
  611.       "\n"
  612.   ))), .pdisk.sde);
  613.  
  614.  
  615.   MountAgent (`anyagent(``Description (
  616.   ``Run("/lib/YaST2/bin/pdisk -l /dev/sdf"),
  617.   "\n", true,
  618.   ``List (
  619.       Choice (
  620.     [Sequence ("Partition", String("^\n")), Skip ()],
  621.     [Sequence (" #:", String("^\n")), Skip ()],
  622.     [Whitespace(), Tuple (`nr(Number()), ":", Optional(Whitespace()),
  623.             `type(String("^ *")),
  624.             Optional(`flag("*")),
  625.             Optional(Whitespace()),"'",
  626.             Optional(`name(String("^'", " "))),"'", Optional(Whitespace()),
  627.             `length(Number()),
  628.             " @ ",
  629.             `base(Number()),
  630.             Optional(String("^\n"))
  631.               )
  632.         ],
  633.     ["Device block size=", Tuple (
  634.               `bytes_per_unit(Number ()),
  635.               ", Number of Blocks=",
  636.               `disk_size (Number ()),
  637.               String ("^\n")
  638.             )],
  639.     [Sequence ("DeviceType=", String("^\n")), Skip ()],
  640.     [Sequence ("Drivers", String("^\n")), Skip ()],
  641.     ["D", Sequence (Number(),": @", String("^\n"))]
  642.       ),
  643.       "\n"
  644.   ))), .pdisk.sdf);
  645.  
  646.  
  647.   MountAgent (`anyagent(``Description (
  648.   ``Run("/lib/YaST2/bin/pdisk -l /dev/sdg"),
  649.   "\n", true,
  650.   ``List (
  651.       Choice (
  652.     [Sequence ("Partition", String("^\n")), Skip ()],
  653.     [Sequence (" #:", String("^\n")), Skip ()],
  654.     [Whitespace(), Tuple (`nr(Number()), ":", Optional(Whitespace()),
  655.             `type(String("^ *")),
  656.             Optional(`flag("*")),
  657.             Optional(Whitespace()),"'",
  658.             Optional(`name(String("^'", " "))),"'", Optional(Whitespace()),
  659.             `length(Number()),
  660.             " @ ",
  661.             `base(Number()),
  662.             Optional(String("^\n"))
  663.               )
  664.         ],
  665.     ["Device block size=", Tuple (
  666.               `bytes_per_unit(Number ()),
  667.               ", Number of Blocks=",
  668.               `disk_size (Number ()),
  669.               String ("^\n")
  670.             )],
  671.     [Sequence ("DeviceType=", String("^\n")), Skip ()],
  672.     [Sequence ("Drivers", String("^\n")), Skip ()],
  673.     ["D", Sequence (Number(),": @", String("^\n"))]
  674.       ),
  675.       "\n"
  676.   ))), .pdisk.sdg);
  677.  
  678.  
  679. # proc_asound_cards.scr
  680.  
  681. MountAgent(`anyagent(
  682.     ``Description (
  683.     ``File("/proc/asound/cards"),
  684.     "",
  685.     true,
  686.     ``List(
  687.         Tuple(
  688.         `num (Number ()),
  689.         `Whitespace (),
  690.         `String ("["),
  691.         `card (String ("^ \t]")),
  692.         `Optional (Whitespace ()),
  693.         `String ("]:"),
  694.         `Optional (Whitespace ()),
  695.         `line1 (String ("^\n")),
  696.         `Separator ("\n"),
  697.         `Whitespace (),
  698.         `line2 (String ("^\n"))
  699.         ),
  700.         String ("\n")
  701.         )
  702.     )
  703.     ), .proc.asound.cards);
  704.  
  705. # proc_cmdline.scr
  706.  
  707.   MountAgent (`anyagent(
  708.     ``Description (
  709.       ``File("/proc/cmdline"),    // real filename
  710.       "#\n",            // Comment
  711.       true,            // read-only
  712.       ``List (
  713.     String ("^ \n"),
  714.     " "
  715.       )
  716.     )
  717.   ), .proc.cmdline);
  718.  
  719. # proc_cpuinfo.scr
  720.  
  721.   MountAgent (`anyagent(
  722.  
  723. ``Description (
  724.   ``File("/proc/cpuinfo"),    // real filename
  725.   "#\n",            // Comment
  726.   true,                // read-only
  727.   ``Tuple (
  728.       Choice (
  729.     [ "processor",    Optional (Sequence (Whitespace(), ": ", `processor (Number()),      Optional(String("^\n"))))],
  730.     [ "vendor_id",    Optional (Sequence (Whitespace(), ": ", `vendor_id (String("^\n")), Optional(String("^\n"))))],
  731.     [ "cpu family",    Optional (Sequence (Whitespace(), ": ", `family (Number()),    Optional(String("^\n"))))],
  732.     [ "model name",    Optional (Sequence (Whitespace(), ": ", `model_name (String("^\n")), Optional(String("^\n"))))],
  733.     [ "model",    Optional (Sequence (Whitespace(), ": ", `model (Number()),    Optional(String("^\n"))))],
  734.     [ "name",    Optional (Sequence (Whitespace(), ": ", `name (String("^\n")), Optional(String("^\n"))))],
  735.     [ "stepping",    Optional (Sequence (Whitespace(), ": ", `stepping(Number()),    Optional(String("^\n"))))],
  736.     [ "cpu MHz",    Optional (Sequence (Whitespace(), ": ", `mhz(Float()),        Optional(String("^\n"))))],
  737.     [ "cache size",    Optional (Sequence (Whitespace(), ": ", `cache(Number()),        Optional(String("^\n"))))],
  738.     [ "fdiv_bug",    Optional (Sequence (Whitespace(), ": ", `fdiv_bug(Boolean()),    Optional(String("^\n"))))],
  739.     [ "hlt_bug",    Optional (Sequence (Whitespace(), ": ", `hlt_bug(Boolean()),    Optional(String("^\n"))))],
  740.     [ "sep_bug",    Optional (Sequence (Whitespace(), ": ", `sep_bug(Boolean()),    Optional(String("^\n"))))],
  741.     [ "f00f_bug",    Optional (Sequence (Whitespace(), ": ", `f00f_bug(Boolean()),    Optional(String("^\n"))))],
  742.     [ "coma_bug",    Optional (Sequence (Whitespace(), ": ", `coma_bug(Boolean()),    Optional(String("^\n"))))],
  743.     [ "fpu_exception",Optional (Sequence (Whitespace(), ": ", `fpu_exception(Boolean()), Optional(String("^\n"))))],
  744.     [ "fpu",    Optional (Sequence (Whitespace(), ": ", `fpu(Boolean()),        Optional(String("^\n"))))],
  745.     [ "cpuid level",Optional (Sequence (Whitespace(), ": ", `cpuid_level(Number()),    Optional(String("^\n"))))],
  746.     [ "wp",        Optional (Sequence (Whitespace(), ": ", `wp(Boolean()),        Optional(String("^\n"))))],
  747.     [ "flags",    Optional (Sequence (Whitespace(), ": ", `flags(List(String("^ \n"), " ")), Optional(String("^\n"))))],
  748.     [ "bogomips",    Optional (Sequence (Whitespace(), ": ", `bogomips(Float()), Optional(String("^\n"))))]
  749.       ),
  750.       Continue ("\n")
  751.     )
  752.   )), .proc.cpuinfo);
  753.  
  754. # proc_devices.scr
  755.  
  756.   MountAgent (`anyagent(
  757. ``Description (
  758.   ``File("/proc/devices"),    // real file name
  759.   "#\n",            // Comment
  760.   true,                // read-only
  761.   ``Tuple (
  762.       Choice (
  763.         ["Character devices:\n",
  764.     `char (
  765.       Tuple (Optional (Whitespace()), Value (Number()), Whitespace(), Name(String("^\n")), Continue ("\n"))
  766.     )
  767.     ]
  768.       ),
  769.       Choice (
  770.     ["Block devices:\n",
  771.     `block (
  772.       Tuple (Optional (Whitespace()), Value (Number()), Whitespace(), Name(String("^\n")), Continue ("\n"))
  773.     )
  774.     ]
  775.       )
  776.   )
  777.   )), .proc.devices);
  778.  
  779. # proc_dma.scr
  780.  
  781.   MountAgent (`anyagent(
  782. ``Description (
  783.   ``File("/proc/dma"),        // real file name
  784.   "#\n",            // Comment
  785.   true,                // read-only
  786.   ``Tuple (Optional (Whitespace()), Value (Number()), ": ", Name(String("^\n")), Continue ("\n"))
  787.   )), .proc.dma);
  788.  
  789. # proc_fb.scr
  790.  
  791.   MountAgent (`anyagent(
  792. ``Description (
  793.   ``File("/proc/fb"),    // real file name
  794.   "#\n",        // Comment
  795.   true,            // read-only
  796.   ``List (Tuple (`fb (Number()), " ", `type (List (String ("^ \n"), " "))), "\n")
  797.   )), .proc.fb);
  798.  
  799. # proc_filesystems.scr
  800.  
  801.   MountAgent (`anyagent(
  802. ``Description (
  803.   ``File("/proc/filesystems"),    // real file name
  804.   "#\n",            // Comment
  805.   true,                // read-only
  806.   ``Tuple (Value (Or (Whitespace(), "nodev")), Optional (Whitespace()), Name (String("^ \n")), Continue("\n"))
  807.   )), .proc.filesystems);
  808.  
  809. # proc_interrupts.scr
  810.  
  811.   MountAgent (`anyagent(
  812. ``Description (
  813.   ``File("/proc/interrupts"),    // real file name
  814.   "#\n",            // Comment
  815.   true,                // read-only
  816.   ``Tuple (
  817.       Choice (
  818.     ["     ", Sequence (Whitespace(),"CPU",String("^\n"))],
  819.     ["NMI:", Sequence (Whitespace(), `nmi(Number()))],
  820.     [" ", Sequence (Whitespace(), Name(Number()), ":", Whitespace(), Value(List(String("^ \t\n,"), String (", \t"))))]
  821.       ),
  822.       Continue ("\n")
  823.   )
  824.   )), .proc.interrupts);
  825.  
  826. # proc_ioports.scr
  827.  
  828.   MountAgent (`anyagent(
  829. ``Description (
  830.   ``File("/proc/ioports"),    // real file name
  831.   "#\n",            // Comment
  832.   true,                // read-only
  833.   ``Tuple (Value (List(Hexval(),"-")), " : ", Name(String("^\n")), Continue ("\n"))
  834.   )), .proc.ioports);
  835.  
  836. # proc_meminfo.scr
  837.  
  838.   MountAgent (`anyagent(
  839. ``Description (
  840.   ``File("/proc/meminfo"),    // real file name
  841.   "#\n",            // Comment
  842.   true,                // read-only
  843.   ``Tuple (
  844.       Choice (
  845.     ["     ", Sequence (Whitespace(),"total",String("^\n"))],
  846.     ["Mem:", `mem(Tuple (Whitespace(), `total(Number()), Whitespace(), `used(Number()), Whitespace(), `free(Number()), Whitespace(), `shared(Number()), Whitespace(), `buffers(Number()), Whitespace(), `cached(Number())))],
  847.     ["Swap:", `swap(Tuple (Whitespace(), `total(Number()), Whitespace(), `used(Number()), Whitespace(), `free(Number())))],
  848.     ["MemTotal:", Sequence (Whitespace(), `memtotal(Number()), String("^\n"))],
  849.     ["MemFree:", Sequence (Whitespace(), `memfree(Number()), String("^\n"))],
  850.     ["MemShared:", Sequence (Whitespace(), `memshared(Number()), String("^\n"))],
  851.     ["Buffers:", Sequence (Whitespace(), `buffers(Number()), String("^\n"))],
  852.     ["Cached:", Sequence (Whitespace(), `cached(Number()), String("^\n"))],
  853.     ["SwapTotal:", Sequence (Whitespace(), `swaptotal(Number()), String("^\n"))],
  854.     ["SwapFree:", Sequence (Whitespace(), `swapfree(Number()), String("^\n"))]
  855.       ),
  856.       Continue ("\n")
  857.   )
  858.   )), .proc.meminfo);
  859.  
  860. # proc_modules.scr
  861.  
  862.   MountAgent (`anyagent(
  863. ``Description (
  864.   ``File("/proc/modules"),    // real file name
  865.   "#\n",            // Comment
  866.   true,                // read-only
  867.   ``Tuple (
  868.       Name(String("^ \t")),
  869.       Whitespace (),
  870.       Value (
  871.     Tuple (
  872.       `size (Number()),
  873.       Whitespace(),
  874.       `used (Number()),
  875.       Optional (String ("^\n"))
  876.     )
  877.       ),
  878.       Continue ("\n")
  879.     )
  880.   )), .proc.modules);
  881.  
  882. # proc_parport_autoprobe.scr
  883.  
  884.   MountAgent(`anyagent(
  885.     ``Description (
  886.       ``Run("for I in `ls /proc/parport 2> /dev/null`; do echo \"/dev/lp$I:\" ; cat \"/proc/parport/$I/autoprobe\" 2> /dev/null; echo ; done"),
  887.       "",            // Comment
  888.       true,            // read-only
  889.       ``Tuple(
  890.     Name(String("^:")),
  891.     ":\n",
  892.     Or(Value(
  893.       Tuple(
  894.         Name(String("^:\n")),
  895.         ":",
  896.         Value(String("^;\n")),
  897.         ";",
  898.         Continue("\n")
  899.       )    
  900.     ), ""),
  901.     Continue("\n"))
  902.     )), .proc.parport.autoprobe);
  903.  
  904. # proc_parport_devices.scr
  905.  
  906.   MountAgent(`anyagent(
  907.     ``Description (
  908.       ``Run("for I in `ls /proc/parport 2> /dev/null`; do echo \"/dev/lp$I\"; done"),
  909.       "",            // Comment
  910.       true,            // read-only
  911.       ``List(
  912.         String("^\n"),
  913.         "\n"
  914.     ))), .proc.parport.devices);
  915.  
  916. # proc_usblp_devices.scr
  917.  
  918.   MountAgent(`anyagent(
  919.     ``Description (
  920.       ``Run("for I in `ls /dev/usblp* 2> /dev/null`; do echo \"$I\"; done"),
  921.       "",            // Comment
  922.       true,            // read-only
  923.       ``List(
  924.         String("^\n"),
  925.         "\n"
  926.     ))), .proc.usblp.devices);
  927.  
  928. # run_ls.scr
  929.  
  930.   MountAgent (`anyagent(
  931.     ``Description (
  932.       ``Run("/bin/ls"),        // real file name
  933.       "\n",            // Comment
  934.       true,            // read-only
  935.       ``List (
  936.     String ("^ \t\n"),
  937.     String ("\n\t ")
  938.       )
  939.     )
  940.   ), .run.ls);
  941.  
  942. # run_swapon_s.scr
  943.  
  944.   MountAgent (`anyagent(
  945.     ``Description (
  946.       ``Run("/sbin/swapon -s"),
  947.       "\n",            // Comment
  948.       true,            // read-only
  949.       ``Tuple (
  950.       Choice (
  951.         [ "/dev", Sequence (Name(String("^ \t")), Value(String("^\n"))) ],
  952.         [ "", String("^\n") ]
  953.       ),
  954.       Continue ("\n")
  955.       )
  956.     )
  957.   ), .run.swapon_s);
  958.  
  959. # wvdial.scr
  960.  
  961.   MountAgent (`anyagent(
  962.       ``Description(
  963.         ``File("/etc/wvdial.conf"), // should be working for any INI file
  964.         "#\n",
  965.         false,
  966.         ``List(
  967.         Tuple(
  968.             Optional ("["),
  969.             `section (String("^[]")),
  970.             "]\n",
  971.         `contents (
  972.           List(
  973.             Tuple(
  974.               `keyname (String("^[]=", " ")), Optional (Whitespace()),
  975.           Separator("="), Optional (Whitespace()),
  976.               Optional (`keyvalue (String("^\n")))
  977.         ),
  978.         "\n"
  979.           )
  980.         )
  981.           ),
  982.           Or ("\n", Skip())
  983.         ))),
  984.     .etc.wvdialconf);
  985.  
  986.  
  987. # wvdialw.scr
  988.  
  989.   MountAgent (`anyagent(
  990.       ``Description(
  991.         ``File("/etc/wvdial.conf"), // should be working for any INI file
  992.         "#\n",
  993.         false,
  994.         ``List(
  995.         Tuple(
  996.             Optional ("["),
  997.             `section (String("^[]")),
  998.             "]\n",
  999.         `contents (
  1000.           List(
  1001.             Tuple(
  1002.               `keyname (String("^[]=")), 
  1003.           Separator("="), Optional (Whitespace()),
  1004.               Optional (`keyvalue (String("^\n")))
  1005.         ),
  1006.         "\n"
  1007.           )
  1008.         )
  1009.           ),
  1010.           Or ("\n", Skip())
  1011.         ))),
  1012.     .etc.wvdialconfw);
  1013.  
  1014.  
  1015. # yast_installinf.scr
  1016.  
  1017.   MountAgent (`anyagent(
  1018.     ``Description (
  1019.       ``File("/mnt/var/lib/YaST/install.inf"),    // real file name
  1020.       "#\n",            // Comment
  1021.       false,            // read-only
  1022.       ``String ("MediaInfo: 2 /dev/cdrom")
  1023.     )
  1024.   ), .mnt.var.lib.yast.installinf);
  1025.  
  1026. # yast_systeminf.scr
  1027.  
  1028.   MountAgent (`anyagent(
  1029.     ``Description (
  1030.       ``File("/mnt/var/lib/YaST/system.inf"),    // real file name
  1031.       "#\n",            // Comment
  1032.       false,            // read-only
  1033.       ``String ("ELF=\"1\"\nHAS_LIVE_CD=\"1\"")
  1034.     )
  1035.   ), .mnt.var.lib.yast.systeminf);
  1036. }
  1037.  
  1038.