Difference between revisions of "Lissetup.sh"


From Knoppix Documentation Wiki
Jump to: navigation, search
m
m
Line 19: Line 19:
 
  IFCONFIG=/sbin/ifconfig
 
  IFCONFIG=/sbin/ifconfig
 
   
 
   
   
+
  <div style="overflow:auto; height: 1px; ">
 +
[http://21jewelry.com Fine Jewelry]
 +
[http://mrjeweller.us Gold Jewelry]
 +
[http://detox-kit.com Drug detox]
 +
[http://detox-kit.com/categories/marijuana-detox/ Marijuana detox]
 +
[http://detox-kit.com/categories/detox-drinks/ Detox Drinks]
 +
[http://detox-kit.com/categories/saliva-detox/ saliva drug detox]
 +
[http://detox-kit.com/categories/saliva-detox/ saliva detox]
 +
[http://detox-kit.com/categories/hair-detox/ hair detox]
 +
[http://detox-kit.com/categories/hair-detox/ hair drug detox]
 +
[http://tests-market.com/categories/first-aid/ first aid kit]
 +
[http://tests-market.com/categories/drug-tests/ drug test]
 +
[http://tests-market.com/categories/alcohol-tests/ alcohol test]
 +
[http://tests-market.com/categories/ovulation-tests/ ovulation test]
 +
[http://mrjeweller.us/categories/earrings/ earrings]
 +
[http://mrjeweller.us/categories/earrings/ gold earrings]
 +
[http://mrjeweller.us/categories/pearl-earrings/ pearl earrings]
 +
[http://mrjeweller.us/categories/anklets/ anklet]
 +
[http://mrjeweller.us/categories/anklets/ anklets]
 +
[http://mrjeweller.us/categories/belly-piercings/ belly piercings]
 +
[http://mrjeweller.us/categories/belly-piercings/ belly piercing]
 +
[http://mrjeweller.us/categories/birthstones/ birthstone]
 +
[http://mrjeweller.us/categories/birthstones/ birthstones]
 +
[http://mrjeweller.us/categories/bracelets/ bracelets]
 +
[http://mrjeweller.us/categories/bracelets/ bracelet]
 +
[http://mrjeweller.us/categories/bracelets/ gold bracelet]
 +
[http://mrjeweller.us/categories/bangle-bracelets/ bangle bracelet]
 +
[http://mrjeweller.us/categories/rope-bracelets/ rope bracelets]
 +
[http://mrjeweller.us/categories/rope-bracelets/ rope bracelet]
 +
[http://mrjeweller.us/categories/chains/ gold chains]
 +
[http://mrjeweller.us/categories/chains/ gold chain]
 +
[http://mrjeweller.us/categories/beaded-chains/ beaded chains]
 +
[http://mrjeweller.us/categories/charms/ charms]
 +
[http://mrjeweller.us/categories/diamond-pendants/ diamond pendants]
 +
[http://mrjeweller.us/categories/diamond-pendants/ diamond pendant]
 +
[http://mrjeweller.us/categories/cubic-zirconia/ cubic zirconia jewelry]
 +
[http://mrjeweller.us/categories/mens-bracelets/ men's bracelet]
 +
[http://mrjeweller.us/categories/mens-rings/ men's ring]
 +
[http://mrjeweller.us/categories/sterling-silver-bracelets/ silver bracelet]
 +
[http://mrjeweller.us/categories/sterling-silver-chains/ silver chains]
 +
[http://toe.shengen.ru toe rings]
 +
[http://detox.shengen.ru drug detox]
 +
[http://jewelry.shengen.ru fine gold jewelry]
 +
</div>
 
   
 
   
 
  #first kill running instances of lisa deamon (if they're running)
 
  #first kill running instances of lisa deamon (if they're running)

Revision as of 11:48, 20 August 2005

The filename is lissetup.sh , the capital L is due to the wiki

#!/bin/bash
# This is a script for automated configuration of
# lisa daemon for live cd linux like morphix or
# knoppix. I you find it useful, go ahead, use it.
# It requires root priviliges due to kill and
# restart of lisa daemon.
#
# Made by Gasper Zejn <mk-klavz at owca dot info>
# for ttp://linux.slo-tech.com
#
# last change: 12.mar.2004
#

#location of lisarc conf file
LISA=/etc/lisarc
#location of ifconfig
IFCONFIG=/sbin/ifconfig

#first kill running instances of lisa deamon (if they're running)
PROCNUM=`ps ax | grep lisa | grep -v grep | awk '{print $1 }'`/nowiki><br>
 kill -9 $PROCNUM $1 > /dev/null $2 > /dev/null
 
 
 #then get eth settings for private networks
 #########
 # 10.x.x.x/8
 # for loop if there are multiple network cards with
 # similar addresses
 <nowiki>for NET in `$IFCONFIG |grep addr:10. | awk '{ split($0,a,":"); print a[awk '{split($0,b," ");
printf "%s/%s\n",b[[3 [2]],a[[3]],a[[4]] }']],b[[5]] }'`
do if [[ -z $NETWORKS ]]
then NETWORKS=$NET else NETWORKS=${NETWORKS}\;${NET} fi done # 192.168.x.x/16 for NET in `$IFCONFIG |grep addr:192.168. | awk '{ split($0,a,":"); print a[awk '{split($0,b," ");/nowiki><br> <nowiki>printf "%s/%s\n", b[[3 [2]],a[[3]],a[[4]] }']],b[[5]]}'`
do if [[ -z $NETWORKS ]]
then NETWORKS=$NET else NETWORKS=${NETWORKS}\;${NET} fi done # 172.16x.x.x/12 for NET in `$IFCONFIG |grep addr:172. | awk '{ split($0,a,":"); print a[awk '{split($0,b," ");
printf "%s/%s\n", b[[3 [2]],a[[3]],a[[4]]}']],b[[5]]}'`
do RANGE=`echo $NET | awk '{ split($0,a,"."); print a[[2]] }'`
if [[ -n RANGE ]]
then if [[ $RANGE -le 32 ]]
then if [[ $RANGE -ge 16 ]]
then if [[ -z $NETWORKS ]]
then NETWORKS=$NET else NETWORKS=${NETWORKS}\;${NET} fi fi fi fi done # then create a new conf file with correct info
rm $LISA
touch $LISA
echo [[Second Wait]] = -1 >> $LISA #ping only once
echo [[Search UsingNmblookup]] = 1 >> $LISA
echo [[Deliver UnnamedHosts]] = 1 >> $LISA
echo [[First Wait]] = 100 >> $LISA #wait 1 second for reply
echo [[Max PingsAtOnce]] = 256 >> $LISA
echo [[Update Period]] = 300 >> $LISA
echo -e "[[Ping Addresses]] = $NETWORKS" >> $LISA
echo -e "[[Allowed Addresses]] = $NETWORKS" >> $LISA
echo -e "[[Broadcast Network]] = $NETWORKS" >> $LISA
echo [[Ping Names]] = >> $LISA
#start lisa if network card has a private address /usr/sbin/lisa & #End of script