summaryrefslogtreecommitdiffstats
path: root/globetrotter/hwprofile
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-06-09 10:06:35 +0000
committerMystery Man <unknown@mandriva.org>2005-06-09 10:06:35 +0000
commitdc8e188264a13aa04a6d8148c2b41f932d1975d3 (patch)
tree029e0777a21646f1f1856a93637aa66da651d189 /globetrotter/hwprofile
parent8ea9beca90c410e12593fedfb6e741dbdf8795d0 (diff)
downloaddrakx-backup-do-not-use-dc8e188264a13aa04a6d8148c2b41f932d1975d3.tar
drakx-backup-do-not-use-dc8e188264a13aa04a6d8148c2b41f932d1975d3.tar.gz
drakx-backup-do-not-use-dc8e188264a13aa04a6d8148c2b41f932d1975d3.tar.bz2
drakx-backup-do-not-use-dc8e188264a13aa04a6d8148c2b41f932d1975d3.tar.xz
drakx-backup-do-not-use-dc8e188264a13aa04a6d8148c2b41f932d1975d3.zip
This commit was manufactured by cvs2svn to create tagMDK10-LACIE-restore
'MDK10-LACIE-restore'.
Diffstat (limited to 'globetrotter/hwprofile')
-rw-r--r--globetrotter/hwprofile7
1 files changed, 3 insertions, 4 deletions
diff --git a/globetrotter/hwprofile b/globetrotter/hwprofile
index 32cb99efe..b22ff0c8b 100644
--- a/globetrotter/hwprofile
+++ b/globetrotter/hwprofile
@@ -28,7 +28,9 @@ use network::netconnect;
my $id = "MDK" . md5_hex(join("", (map { (split)[1] } cat_("/proc/bus/pci/devices"))));
my $netcnx = {};
-my $is_first_boot = !glob_("/etc/netprofile/profiles/MDK*");
+
+# first boot wizard:
+!glob_("/etc/netprofile/profiles/MDK*") and system('/usr/sbin/mdkmove');
# create hardware profile if needed:
if (! -d "/etc/netprofile/profiles/$id") {
@@ -40,8 +42,5 @@ if (! -d "/etc/netprofile/profiles/$id") {
$netcnx->{PROFILE} = $id;
eval { network::netconnect::set_profile($netcnx) };
-# first boot wizard:
-$is_first_boot and system('/usr/sbin/mdkmove');
-
# redo ldconfig cache for libGL (since we've both ATI and NVIDIA GLX packages):
system("/sbin/ldconfig");