aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2007-09-19 19:58:07 +0000
committerJohn Crispin <john@openwrt.org>2007-09-19 19:58:07 +0000
commitf3b9e06a14df482f77c9e7a5e899074263a639c7 (patch)
tree4a6e1115420eed443f8ad20251c56062c0b1bc83 /package
parent0a08fde2dc6eae2c603a2e87a16a84309415b4ba (diff)
downloadupstream-f3b9e06a14df482f77c9e7a5e899074263a639c7.tar.gz
upstream-f3b9e06a14df482f77c9e7a5e899074263a639c7.tar.bz2
upstream-f3b9e06a14df482f77c9e7a5e899074263a639c7.zip
made HOME=/root global instead of x86 specific
SVN-Revision: 8845
Diffstat (limited to 'package')
-rw-r--r--package/base-files/Makefile1
-rw-r--r--package/base-files/files/etc/passwd2
-rw-r--r--package/base-files/files/etc/profile2
3 files changed, 3 insertions, 2 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 313710187d..c639df8386 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -156,6 +156,7 @@ define Package/base-files$(TARGET)/install
mkdir -p $(1)/usr/bin
mkdir -p $(1)/sys
mkdir -p $(1)/www
+ mkdir -p $(1)/root
ln -sf /proc/mounts $(1)/etc/mtab
rm -f $(1)/var
ln -sf /tmp $(1)/var
diff --git a/package/base-files/files/etc/passwd b/package/base-files/files/etc/passwd
index 3b660a0d4e..6fe6ab5ad4 100644
--- a/package/base-files/files/etc/passwd
+++ b/package/base-files/files/etc/passwd
@@ -1,2 +1,2 @@
-root:!:0:0:root:/tmp:/bin/ash
+root:!:0:0:root:/root:/bin/ash
nobody:*:65534:65534:nobody:/var:/bin/false
diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile
index 5cb83c9355..e82408ff83 100644
--- a/package/base-files/files/etc/profile
+++ b/package/base-files/files/etc/profile
@@ -2,7 +2,7 @@
[ -f /etc/banner ] && cat /etc/banner
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
-export HOME=/tmp
+export HOME=/root
export PS1='\u@\h:\w\$ '
[ -x /bin/more ] || alias more=less