From f3aa8f589504f7a700039d8287658936953bafbb Mon Sep 17 00:00:00 2001 From: blogic Date: Wed, 19 Sep 2007 19:58:07 +0000 Subject: made HOME=/root global instead of x86 specific git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8845 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/Makefile | 1 + package/base-files/files/etc/passwd | 2 +- package/base-files/files/etc/profile | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'package/base-files') diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 313710187..c639df838 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 3b660a0d4..6fe6ab5ad 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 5cb83c935..e82408ff8 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 -- cgit v1.2.3