diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2006-05-01 16:39:15 +0000 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2006-05-01 16:39:15 +0000 |
commit | cc1507636aa0905a05d44656a89988639f10ff50 (patch) | |
tree | 14b94dce1805d65a41914b8854087e6831b835c5 /command-stubs | |
parent | 321a9e36c466b641b4d6f7cb9a889da239c4a647 (diff) | |
download | anaconda-cc1507636aa0905a05d44656a89988639f10ff50.tar.gz anaconda-cc1507636aa0905a05d44656a89988639f10ff50.tar.xz anaconda-cc1507636aa0905a05d44656a89988639f10ff50.zip |
add syslogd stub
Diffstat (limited to 'command-stubs')
-rw-r--r-- | command-stubs/Makefile | 2 | ||||
-rwxr-xr-x | command-stubs/syslogd-stub | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/command-stubs/Makefile b/command-stubs/Makefile index e68983bba..d0d1c8fea 100644 --- a/command-stubs/Makefile +++ b/command-stubs/Makefile @@ -1,7 +1,7 @@ include ../Makefile.inc STUBS = raidstart-stub raidstop-stub kudzu-probe-stub list-harddrives-stub \ - loadkeys-stub losetup-stub pump-stub mknod-stub + loadkeys-stub losetup-stub pump-stub mknod-stub syslogd-stub all: @echo "Nothing to do" diff --git a/command-stubs/syslogd-stub b/command-stubs/syslogd-stub new file mode 100755 index 000000000..89d9e80d9 --- /dev/null +++ b/command-stubs/syslogd-stub @@ -0,0 +1,16 @@ +#!/usr/bin/python + +import sys +sys.path.append('/usr/lib/anaconda') + +def usage(): + sys.stderr.write("syslogd [root] [output file]") + +if __name__ == "__main__": + from syslogd import Syslogd + if len(sys.argv) != 3: + usage() + sys.exit(1) + root = sys.argv[1] + output = sys.argv[2] + syslog = Syslogd (root, open (output, "a")) |