mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-26 23:23:55 +01:00
integrate-distro.sh: Support for running without ytools-run installed
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
13d38c3147
commit
12acf93505
1 changed files with 12 additions and 4 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
. ini-tools.sh
|
|
||||||
|
|
||||||
# -- defaults
|
# -- defaults
|
||||||
# install_dev=/dev/sdb
|
# install_dev=/dev/sdb
|
||||||
arch=`uname -m`
|
arch=`uname -m`
|
||||||
|
|
@ -450,7 +448,8 @@ usage()
|
||||||
|
|
||||||
get_opts()
|
get_opts()
|
||||||
{
|
{
|
||||||
eval set -- `getopt -o 'hd:n:a:p:k:u:w:s:r:fc:' -l config-file:,non-interactive -- "$@"`
|
local p
|
||||||
|
eval set -- `getopt -o 'hd:n:a:p:k:u:w:s:r:fc:P:' -l config-file:,non-interactive -- "$@"`
|
||||||
while [ "$1" != -- ] ; do
|
while [ "$1" != -- ] ; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-h)
|
-h)
|
||||||
|
|
@ -503,6 +502,13 @@ get_opts()
|
||||||
-f)
|
-f)
|
||||||
o_force=1
|
o_force=1
|
||||||
;;
|
;;
|
||||||
|
-P)
|
||||||
|
export PATH="$2"
|
||||||
|
for p in /sbin /usr/sbin; do
|
||||||
|
echo $PATH | grep -q "\(^\|:\)$p\(:\|$\)" || PATH=$PATH:$p
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
usage 1
|
usage 1
|
||||||
;;
|
;;
|
||||||
|
|
@ -1380,6 +1386,8 @@ host_files=""
|
||||||
declare -A hooks
|
declare -A hooks
|
||||||
get_opts "$@"
|
get_opts "$@"
|
||||||
|
|
||||||
|
. ini-tools.sh
|
||||||
|
|
||||||
case $arch in
|
case $arch in
|
||||||
i386|i586|i686)
|
i386|i586|i686)
|
||||||
case `uname -m` in
|
case `uname -m` in
|
||||||
|
|
@ -1433,7 +1441,7 @@ if [ `whoami` != root -o "$l32" ]; then
|
||||||
opts=""
|
opts=""
|
||||||
[ "$config_file" ] && opts="$opts --config-file $config_file"
|
[ "$config_file" ] && opts="$opts --config-file $config_file"
|
||||||
#debug="/bin/bash -x"
|
#debug="/bin/bash -x"
|
||||||
ssh -l root localhost $l32 $debug $exe $@ -p $root_password_file -u $scm_user -w $cwd $opt_ssh_auth_sock $opts
|
ssh -l root localhost $l32 $debug $exe $@ -p $root_password_file -u $scm_user -w $cwd $opt_ssh_auth_sock -P "$PATH" $opts
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue