2 if [ ! `egrep '^_adsuck:' /etc/group` ]; then
3 echo "Adding adsuck group"
7 if [ ! `egrep '^_adsuck:' /etc/passwd` ]; then
8 echo "Adding adsuck user"
9 useradd -g _adsuck -d /var/adsuck -s /bin/false _adsuck
11 echo 'Now manipulate the regex file /var/adsuck/filter and get your /var/adsuck/hosts file'
12 echo 'Examples: http://www.mvps.org/winhelp2002/hosts.txt'
13 echo ' http://rlwpx.free.fr/WPFF/hosts.htm'
14 echo ' http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts'
15 echo 'And make sure your setup with resolv.conf is correct.'
23 echo "Removing adsuck user and group"
24 groupdel _adsuck &> /dev/null
25 userdel _adsuck &> /dev/null