Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_ext_file: some tweaks #2681

Open
wants to merge 1 commit into
base: testing
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions initrd-progs/0initrd/sbin/load_ext_file
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,20 @@ fi

check_bin() {
app=$1
if [ ! -e /bin/${app} ] ; then
if [ -e /pup_new/sbin/${app}-static ] ; then
ln -sv /pup_new/sbin/${app}-static /bin/${app}
elif [ -e /pup_new/sbin/${app} ] ; then
ln -sv /pup_new/sbin/${app} /bin/${app}
if [ ! -e /bin/${app} ]; then
if [ -e /sbin/${app} ] ; then
ln -sv /sbin/${app} /bin/${app}
elif [ -e /pup_new/bin/${app}-static ] ; then
ln -sv /pup_new/bin/${app}-static /bin/${app}
elif [ -e /pup_new/bin/${app} ] ; then
ln -sv /pup_new/bin/${app} /bin/${app}
elif [ -e /pup_new/usr/bin/${app} ] ; then
ln -sv /pup_new/usr/bin/${app} /bin/${app}
elif [ -e /pup_new/usr/sbin/${app} ] ; then
ln -sv /pup_new/usr/sbin/${app} /bin/${app}
fi
fi

if [ ! -e /bin/${app} ] ; then
(
echo -e "\\033[1;31m" #31=red
Expand Down