diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-09-20 05:25:30 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-09-20 05:25:30 +0000 |
commit | 9b1d68eb65c3d9f129d33f60ffb756997979c11b (patch) | |
tree | c3bb219b683046bd2608d972246d16607aaf06cf | |
parent | 613b34ef257324f2cca66192f315994b13f70b90 (diff) | |
download | mgaonline-9b1d68eb65c3d9f129d33f60ffb756997979c11b.tar mgaonline-9b1d68eb65c3d9f129d33f60ffb756997979c11b.tar.gz mgaonline-9b1d68eb65c3d9f129d33f60ffb756997979c11b.tar.bz2 mgaonline-9b1d68eb65c3d9f129d33f60ffb756997979c11b.tar.xz mgaonline-9b1d68eb65c3d9f129d33f60ffb756997979c11b.zip |
- added hw_db client for hardware upload
-rw-r--r-- | mdkonline.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mdkonline.pm b/mdkonline.pm index 6d0430e7..44ec7ba0 100644 --- a/mdkonline.pm +++ b/mdkonline.pm @@ -55,12 +55,8 @@ sub header { " ********************************************************************************"; } output($file, map { chomp; "$_\n" } - header("partitions"), cat_("/proc/partitions"), - header("cpuinfo"), cat_("/proc/cpuinfo"), - header("fstab"), cat_("/etc/fstab"), - header("/etc/modules.conf"), cat_("/etc/modules.conf"), header("rpm -qa"), join('', sort `rpm -qa`), - header("mandrake version"), cat_('/etc/mandrake-release')); + header("mandrake version"), cat_('/etc/mandrakelinux-release')); system("/usr/bin/bzip2 -f $file"); open(my $F, $file . ".bz2") or die "Cannot open file : $!"; my ($chunk, $buffer); @@ -93,6 +89,10 @@ sub mv_files { -e $source and system("mv", $source, $dest); } +sub hw_upload { + my ($login, $hostname, $passwd) = @_; + system("HWDB_PASSWD=$passwd hwdb_add_system $login $hostname"); +} sub automated_upgrades { my ($conffile, $login, $passwd, $boxname, $key, $country, $auto) = @_; my ($r) = get_release(); |