#!/bin/sh # part of the gn*nix conspiracy http://gnnix.org # Copyright (C) Linus Sphinx 2004 # func to make the distro system gnxcoreut() { gnxpatch coreutils-5.0-uname coreutils-5.0-hostname-2 DEFAULT_POSIX2_VERSION=199209 export DEFAULT_POSIX2_VERSION gnxconfigure --prefix=/usr gnxmake echo "dummy1:x:1000" >> /etc/group echo "dummy2:x:1001:dummy" >> /etc/group echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd make NON_ROOT_USERNAME=dummy check-root gnxmake install-root gnxmake install mv -f /usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} /bin mv -f /usr/bin/{dir,dircolors,du,date,echo,false,head} /bin mv -f /usr/bin/{ln,ls,mkdir,mkfifo,mknod,mv,pwd,chroot} /bin mv -f /usr/bin/{rm,rmdir,shred,sync,sleep,stty,su} /bin mv -f /usr/bin/{touch,true,uname,test,vdir,install} /bin ln -sf /bin/test /usr/bin/[ ln -sf /bin/true /usr/bin/true ln -sf /bin/install /usr/bin/install # for udev hotplug init.d scripts use at boot move wc,cut mv -f /usr/bin/cut /bin/cut mv -f /usr/bin/wc /bin/wc mv -f /usr/bin/id /bin/id rm /usr/bin/uptime rm -f /usr/share/man/man1/uptime.1* rm -f /usr/share/man/man1/groups.1* } #eof