scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit 57d5450c009401a84bbb4fccd9feca6e30dbf860
parent defbef496fd7fb837a5936a960e42ec3c77d97c5
Author: sin <sin@2f30.org>
Date:   Mon, 19 Aug 2013 17:09:58 +0100

Create /etc/passwd and /etc/group

Diffstat:
suckless-initramfs | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/suckless-initramfs b/suckless-initramfs @@ -30,6 +30,9 @@ cd initramfs ln -s /bin sbin cd - +echo 'root:x:0:0:root:/root:/bin/mksh' > initramfs/etc/passwd +echo 'root:x:0:root' > initramfs/etc/group + # Install sbase + ubase + mksh for i in $(find sbase/ -not -iwholename "*.git*" -perm 755); do cp "$i" initramfs/bin @@ -37,11 +40,11 @@ done for i in $(find ubase/ -not -iwholename "*.git*" -perm 755); do cp "$i" initramfs/bin done -cp mksh/mksh initramfs/bin/ksh +cp mksh/mksh initramfs/bin/mksh -# Create symlink for /bin/sh -> ksh +# Create symlink for /bin/sh -> mksh cd initramfs/bin -ln -s /bin/ksh sh +ln -s /bin/mksh sh cd - # Our init script