morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit bffd68192a4d2d0f097920acc0e3f448e3fb7f65
parent ede824c52879bbcc1f15111a6fed54abd1c67fcc
Author: sin <sin@2f30.org>
Date:   Thu, 26 Sep 2013 16:26:46 +0100

Always use ln -sf

Diffstat:
Mpkgs/busybox | 74+++++++++++++++++++++++++++++++++++++-------------------------------------
Mpkgs/crossmusl | 4++--
Mpkgs/dropbear | 2+-
Mpkgs/gawk | 2+-
Mpkgs/mksh | 2+-
Mprepare-root | 6+++---
6 files changed, 45 insertions(+), 45 deletions(-)

diff --git a/pkgs/busybox b/pkgs/busybox @@ -10,45 +10,45 @@ install() { chmod +x busybox cp busybox $root/bin pushd $root - ln -s bin/busybox init + ln -sf bin/busybox init popd pushd $root/bin - ln -s busybox addgroup - ln -s busybox adduser - ln -s getty agetty - ln -s busybox bzip2 - ln -s busybox delgroup - ln -s busybox deluser - ln -s busybox diff - ln -s busybox du - ln -s busybox dd - ln -s busybox ed - ln -s busybox find - ln -s busybox fsck - ln -s busybox fuser - ln -s busybox getty - ln -s busybox gzip - ln -s busybox hexdump - ln -s busybox hwclock - ln -s busybox ifconfig - ln -s busybox kbd_mode - ln -s busybox killall5 - ln -s busybox less - ln -s busybox login - ln -s busybox nc - ln -s busybox passwd - ln -s busybox ping - ln -s busybox pkill - ln -s busybox poweroff - ln -s busybox reboot - ln -s busybox sysctl - ln -s busybox tac - ln -s busybox telnet - ln -s busybox tftp - ln -s busybox tftpd - ln -s busybox top - ln -s busybox vi - ln -s busybox wget + ln -sf busybox addgroup + ln -sf busybox adduser + ln -sf getty agetty + ln -sf busybox bzip2 + ln -sf busybox delgroup + ln -sf busybox deluser + ln -sf busybox diff + ln -sf busybox du + ln -sf busybox dd + ln -sf busybox ed + ln -sf busybox find + ln -sf busybox fsck + ln -sf busybox fuser + ln -sf busybox getty + ln -sf busybox gzip + ln -sf busybox hexdump + ln -sf busybox hwclock + ln -sf busybox ifconfig + ln -sf busybox kbd_mode + ln -sf busybox killall5 + ln -sf busybox less + ln -sf busybox login + ln -sf busybox nc + ln -sf busybox passwd + ln -sf busybox ping + ln -sf busybox pkill + ln -sf busybox poweroff + ln -sf busybox reboot + ln -sf busybox sysctl + ln -sf busybox tac + ln -sf busybox telnet + ln -sf busybox tftp + ln -sf busybox tftpd + ln -sf busybox top + ln -sf busybox vi + ln -sf busybox wget popd popd } diff --git a/pkgs/crossmusl b/pkgs/crossmusl @@ -9,8 +9,8 @@ install() { pushd $root/bin targets="ar as c++ g++ gcc ld ld.bfd nm objcopy objdump ranlib strip" for t in $targets; do - ln -s /devel/x86_64-linux-musl/x86_64-linux-musl/bin/$t $t + ln -sf /devel/x86_64-linux-musl/x86_64-linux-musl/bin/$t $t done - ln -s gcc cc + ln -sf gcc cc popd } diff --git a/pkgs/dropbear b/pkgs/dropbear @@ -26,7 +26,7 @@ install() { make SCPPROGRESS=1 PROGRAMS="dropbear dbclient scp dropbearkey" prefix=$root \ sbindir=$root/bin -j$nprocs install STATIC=1 || return 1 pushd $root/bin - ln -s dbclient ssh + ln -sf dbclient ssh popd popd cp $top/stuff/dropbearkeys $root/etc diff --git a/pkgs/gawk b/pkgs/gawk @@ -23,7 +23,7 @@ install() { pushd src/gawk-4.1.0 make install || return 1 pushd $root/bin - ln -s gawk awk + ln -sf gawk awk popd popd } diff --git a/pkgs/mksh b/pkgs/mksh @@ -19,6 +19,6 @@ build() { install() { cp src/mksh/mksh $root/bin pushd $root/bin - ln -s /bin/mksh sh + ln -sf /bin/mksh sh popd } diff --git a/prepare-root b/prepare-root @@ -2,9 +2,9 @@ mkdir -p $root cd $root mkdir -p boot bin dev devel etc home proc root share sys tmp var mkdir -p share/doc share/man var/empty var/log var/run -ln -s . usr -ln -s bin sbin -ln -s ../tmp var/tmp +ln -sf . usr +ln -sf bin sbin +ln -sf ../tmp var/tmp chmod 1777 tmp chmod 700 root cd -