Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Unified Diff: src/package_scripts/netbase.postinst

Issue 545130: ARM build: replacement postinst for netbase (Closed)
Patch Set: rewrite to do less work Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/package_scripts/package.whitelist » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/package_scripts/netbase.postinst
diff --git a/src/package_scripts/netbase.postinst b/src/package_scripts/netbase.postinst
new file mode 100755
index 0000000000000000000000000000000000000000..448beb376f2ed84453980beff67794db3fa1cdbe
--- /dev/null
+++ b/src/package_scripts/netbase.postinst
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# $ROOT - The path to the target root file system.
+# $SRC_ROOT - The path to the source tree.
+
+# netbase.postinst
+
+set -e
+
+cat > "${ROOT}/etc/hosts" <<EOF
+127.0.0.1 localhost
+
+::1 localhost ip6-localhost ip6-loopback
+fe00::0 ip6-localnet
+ff00::0 ip6-mcastprefix
+ff02::1 ip6-allnodes
+ff02::2 ip6-allrouters
+ff02::3 ip6-allhosts
+EOF
« no previous file with comments | « no previous file | src/package_scripts/package.whitelist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698