| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # | 2 # |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 @@include@@../common/postinst.include | 7 @@include@@../common/postinst.include |
| 8 | 8 |
| 9 # Add to the alternatives system | 9 # Add to the alternatives system |
| 10 # | 10 # |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 unstable ) | 36 unstable ) |
| 37 # Unstable, give it the "lowest" priority. | 37 # Unstable, give it the "lowest" priority. |
| 38 PRIORITY=120 | 38 PRIORITY=120 |
| 39 ;; | 39 ;; |
| 40 * ) | 40 * ) |
| 41 PRIORITY=0 | 41 PRIORITY=0 |
| 42 ;; | 42 ;; |
| 43 esac | 43 esac |
| 44 | 44 |
| 45 update-alternatives --install /usr/bin/x-www-browser x-www-browser \ | 45 update-alternatives --install /usr/bin/x-www-browser x-www-browser \ |
| 46 /usr/bin/@@PACKAGE@@ $PRIORITY | 46 /usr/bin/@@USR_BIN_SYMLINK_NAME@@ $PRIORITY |
| 47 update-alternatives --install /usr/bin/gnome-www-browser gnome-www-browser \ | 47 update-alternatives --install /usr/bin/gnome-www-browser gnome-www-browser \ |
| 48 /usr/bin/@@PACKAGE@@ $PRIORITY | 48 /usr/bin/@@USR_BIN_SYMLINK_NAME@@ $PRIORITY |
| 49 |
| 50 update-alternatives --install /usr/bin/google-chrome google-chrome \ |
| 51 /usr/bin/@@USR_BIN_SYMLINK_NAME@@ $PRIORITY |
| 49 | 52 |
| 50 @@include@@../common/apt.include | 53 @@include@@../common/apt.include |
| 51 | 54 |
| 52 @@include@@../common/symlinks.include | 55 @@include@@../common/symlinks.include |
| 53 | 56 |
| 54 remove_udev_symlinks | 57 remove_udev_symlinks |
| 55 add_udev_symlinks | 58 add_udev_symlinks |
| 56 | 59 |
| 57 ## MAIN ## | 60 ## MAIN ## |
| 58 if [ ! -e "$DEFAULTS_FILE" ]; then | 61 if [ ! -e "$DEFAULTS_FILE" ]; then |
| 59 echo 'repo_add_once="true"' > "$DEFAULTS_FILE" | 62 echo 'repo_add_once="true"' > "$DEFAULTS_FILE" |
| 60 echo 'repo_reenable_on_distupgrade="true"' >> "$DEFAULTS_FILE" | 63 echo 'repo_reenable_on_distupgrade="true"' >> "$DEFAULTS_FILE" |
| 61 fi | 64 fi |
| 62 | 65 |
| 63 # Run the cron job immediately to perform repository configuration. | 66 # Run the cron job immediately to perform repository configuration. |
| 64 nohup sh /etc/cron.daily/@@PACKAGE@@ > /dev/null 2>&1 & | 67 nohup sh /etc/cron.daily/@@PACKAGE@@ > /dev/null 2>&1 & |
| OLD | NEW |