Changeset 481 for trunk/samhain-install.sh.in
- Timestamp:
- Jul 18, 2015, 5:06:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samhain-install.sh.in
r442 r481 65 65 echo 'action = install-boot|install-data|install-user' 66 66 echo ' uninstall|purge|uninstall-boot' 67 echo ' uninstall-data|uninstall-man|uninstall-program |uninstall-lkm'67 echo ' uninstall-data|uninstall-man|uninstall-program' 68 68 echo 'samhain-install.sh --print-config <item>' 69 69 echo 'item = name | basekey | prefix | exec_prefix | sbin_dir | man_dir' … … 514 514 break;; 515 515 516 uninstall-lkm)517 act=ulkm518 break;;519 520 516 uninstall | remove | purge) 521 517 opts= … … 525 521 test x"$DESTDIR" = "x" || opts="$opts --destdir=$DESTDIR" 526 522 test x"$1" = "xpurge" && purge=yes 527 echo "$0 $opts uninstall-lkm"528 eval $0 $opts uninstall-lkm529 523 echo "$0 $opts uninstall-program" 530 524 eval $0 $opts uninstall-program … … 680 674 break 681 675 ;; 682 Linux/* )676 Linux/* | GNU/kFreeBSD/* | GNU/* ) 683 677 file=/etc/passwd 684 678 entry="${user}:*:${uid}:${gid}:${realname}:${home}:${shell}" … … 886 880 ;; 887 881 888 Linux/* )882 Linux/* | GNU/kFreeBSD* | GNU/* ) 889 883 rlv="2 3 4 5" 890 884 linkopt="-f -s" … … 1145 1139 fi 1146 1140 1147 if test x"${act}" = xulkm1148 then1149 RVER=`uname -r`1150 if test "x@sh_lkm@" != "x"; then1151 if test -d /lib/modules/$RVER; then1152 MODDIR="/lib/modules/$RVER"1153 elif test -d /lib/modules/misc; then1154 MODDIR="/lib/modules/misc"1155 elif test -d /lib/modules; then1156 MODDIR="/lib/modules/misc"1157 fi1158 # -- NEW --1159 ALLMODS="@sh_lkm@"1160 for p in $ALLMODS; do1161 test -z "$verbose" || echo " rm -f ${DESTDIR}${MODDIR}/`echo $p|sed '1162 s%samhain%@install_name@%'`"1163 rm -f ${DESTDIR}${MODDIR}/`echo $p|sed 's%samhain%@install_name@%'`1164 done1165 fi1166 fi1167 1168 1141 if test x"${act}" = xuprogram 1169 1142 then 1170 PROGRAMS="@setpwd_prg@ @stegin_prg@ @yulectl_prg@ @sh_main_prg@ "1143 PROGRAMS="@setpwd_prg@ @stegin_prg@ @yulectl_prg@ @sh_main_prg@ @samhainadmin_prg@" 1171 1144 for p in $PROGRAMS; do 1172 test -z "$verbose" || echo " rm -f ${DESTDIR}${sbindir}/`echo $p|sed 's%samhain%@install_name@%'|sed 's%yule%@install_name@%' `"1173 rm -f ${DESTDIR}${sbindir}/`echo $p|sed 's%samhain%@install_name@%'|sed 's%yule%@install_name@%' `1145 test -z "$verbose" || echo " rm -f ${DESTDIR}${sbindir}/`echo $p|sed 's%samhain%@install_name@%'|sed 's%yule%@install_name@%'|sed 's%.*/%%'`" 1146 rm -f ${DESTDIR}${sbindir}/`echo $p|sed 's%samhain%@install_name@%'|sed 's%yule%@install_name@%'|sed 's%.*/%%'` 1174 1147 done 1175 1148 test -z "$verbose" || echo $ECHO_N " ${SH_RMDIR} ${DESTDIR}${sbindir} ... $ECHO_C"
Note:
See TracChangeset
for help on using the changeset viewer.