=== modified file 'includes/install.inc'
--- includes/install.inc	2010-04-11 17:16:45 +0000
+++ includes/install.inc	2010-04-19 07:49:19 +0000
@@ -566,6 +566,10 @@ function drupal_install_system() {
       ))
     ->execute();
   system_rebuild_module_data();
+  include_once DRUPAL_ROOT .'/includes/menu.inc';
+  include_once DRUPAL_ROOT .'/includes/lock.inc';
+  menu_rebuild();
+  system_enable();
 }
 
 /**

=== modified file 'includes/menu.inc'
--- includes/menu.inc	2010-04-13 15:23:02 +0000
+++ includes/menu.inc	2010-04-19 07:52:04 +0000
@@ -860,7 +860,7 @@ function menu_get_object($type = 'node',
  * Render a menu tree based on the current path.
  *
  * The tree is expanded based on the current path and dynamic paths are also
- * changed according to the defined to_arg functions (for example the 'My 
+ * changed according to the defined to_arg functions (for example the 'My
  * account' link is changed from user/% to a link with the current user's uid).
  *
  * @param $menu_name
@@ -2282,7 +2282,6 @@ function menu_rebuild() {
   try {
     list($menu, $masks) = menu_router_build();
     _menu_router_save($menu, $masks);
-    _menu_navigation_links_rebuild($menu);
     // Clear the menu, page and block caches.
     menu_cache_clear_all();
     _menu_clear_page_cache();

=== modified file 'modules/system/system.install'
--- modules/system/system.install	2010-04-10 17:30:15 +0000
+++ modules/system/system.install	2010-04-19 07:50:11 +0000
@@ -418,6 +418,165 @@ function system_install() {
   variable_set('cron_key', $cron_key);
 }
 
+function system_enable() {
+  $links = array(
+   'admin' => array(
+     'link_path' => 'admin',
+     'link_title' => 'Administer',
+     'weight' => 9,
+   ),
+   'admin/structure' => array(
+     'link_path' => 'admin/structure',
+     'link_title' => 'Structure',
+     'position' => 'right',
+     'weight' => -8,
+   ),
+   'admin/appearance' => array(
+     'link_path' => 'admin/appearance',
+     'link_title' => 'Appearance',
+     'position' => 'left',
+     'weight' => -6,
+   ),
+   'admin/modules' => array(
+     'link_path' => 'admin/modules',
+     'link_title' => 'Modules',
+     'weight' => -2,
+   ),
+   'admin/config' => array(
+     'link_path' => 'admin/config',
+     'link_title' => 'Configuration',
+   ),
+   'admin/config/people/ip-blocking' => array(
+     'link_path' => 'admin/config/people/ip-blocking',
+     'link_title' => 'IP address blocking',
+     'weight' => 10,
+   ),
+   'admin/config/media' => array(
+     'link_path' => 'admin/config/media',
+     'link_title' => 'Media',
+     'position' => 'left',
+     'weight' => -10,
+   ),
+   'admin/config/media/file-system' => array(
+     'link_path' => 'admin/config/media/file-system',
+     'link_title' => 'File system',
+     'weight' => -10,
+   ),
+   'admin/config/media/image-toolkit' => array(
+     'link_path' => 'admin/config/media/image-toolkit',
+     'link_title' => 'Image toolkit',
+     'weight' => 20,
+   ),
+   'admin/config/services' => array(
+     'link_path' => 'admin/config/services',
+     'link_title' => 'Web services',
+     'position' => 'right',
+     'weight' => 0,
+   ),
+   'admin/config/services/rss-publishing' => array(
+     'link_path' => 'admin/config/services/rss-publishing',
+     'link_title' => 'RSS publishing',
+   ),
+   'admin/config/development' => array(
+     'link_path' => 'admin/config/development',
+     'link_title' => 'Development',
+     'position' => 'right',
+     'weight' => -10,
+   ),
+   'admin/config/development/maintenance' => array(
+     'link_path' => 'admin/config/development/maintenance',
+     'link_title' => 'Maintenance mode',
+     'weight' => -10,
+   ),
+   'admin/config/development/performance' => array(
+     'link_path' => 'admin/config/development/performance',
+     'link_title' => 'Performance',
+     'weight' => -20,
+   ),
+   'admin/config/development/logging' => array(
+     'link_path' => 'admin/config/development/logging',
+     'link_title' => 'Logging and errors',
+     'weight' => -15,
+   ),
+   'admin/config/regional' => array(
+     'link_path' => 'admin/config/regional',
+     'link_title' => 'Regional and language',
+     'position' => 'left',
+     'weight' => -5,
+   ),
+   'admin/config/regional/settings' => array(
+     'link_path' => 'admin/config/regional/settings',
+     'link_title' => 'Regional settings',
+     'weight' => -20,
+   ),
+   'admin/config/regional/date-time' => array(
+     'link_path' => 'admin/config/regional/date-time',
+     'link_title' => 'Date and time',
+     'weight' => -15,
+   ),
+   'admin/config/search' => array(
+     'link_path' => 'admin/config/search',
+     'link_title' => 'Search and metadata',
+     'position' => 'left',
+     'weight' => -10,
+   ),
+   'admin/config/search/clean-urls' => array(
+     'link_path' => 'admin/config/search/clean-urls',
+     'link_title' => 'Clean URLs',
+     'weight' => 5,
+   ),
+   'admin/config/system' => array(
+     'link_path' => 'admin/config/system',
+     'link_title' => 'System',
+     'position' => 'right',
+     'weight' => -20,
+   ),
+   'admin/config/system/actions' => array(
+     'link_path' => 'admin/config/system/actions',
+     'link_title' => 'Actions',
+   ),
+   'admin/config/system/site-information' => array(
+     'link_path' => 'admin/config/system/site-information',
+     'link_title' => 'Site information',
+     'weight' => -20,
+   ),
+   'admin/config/user-interface' => array(
+     'link_path' => 'admin/config/user-interface',
+     'link_title' => 'User interface',
+     'position' => 'right',
+     'weight' => -15,
+   ),
+   'admin/config/workflow' => array(
+     'link_path' => 'admin/config/workflow',
+     'link_title' => 'Workflow',
+     'position' => 'right',
+     'weight' => 5,
+   ),
+   'admin/config/content' => array(
+     'link_path' => 'admin/config/content',
+     'link_title' => 'Content authoring',
+     'position' => 'left',
+     'weight' => -15,
+   ),
+   'admin/reports' => array(
+     'link_path' => 'admin/reports',
+     'link_title' => 'Reports',
+     'position' => 'left',
+     'weight' => 5,
+   ),
+   'admin/reports/status' => array(
+     'link_path' => 'admin/reports/status',
+     'link_title' => 'Status report',
+     'weight' => 10,
+   ),
+ );
+ foreach ($links as $link) {
+   $link['router_path'] = $link['link_path'];
+   $link['menu_name'] = 'management';
+   menu_link_save($link);
+ }
+}
+
 /**
  * Implements hook_schema().
  */

