Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/etc/init.d/pppd
          +++ new/usr/src/cmd/cmd-inet/etc/init.d/pppd
↓ open down ↓ 55 lines elided ↑ open up ↑
  56   56                  /usr/lib/inet/pppoed >/dev/null
  57   57          fi
  58   58          ;;
  59   59  
  60   60  'stop')
  61   61          /usr/bin/pkill -z `/sbin/zonename` -x pppd && sleep 1
  62   62          /usr/bin/pkill -z `/sbin/zonename` -x pppoed
  63   63  
  64   64          # Use ifconfig to make the interfaces down just in case
  65   65          if [ -f $PPPDIR/ifconfig ]; then
  66      -                nawk '/ifconfig[        ]*sppp/ { \
       66 +                /usr/xpg4/bin/awk '/ifconfig[   ]*sppp/ { \
  67   67                          system("ifconfig " $2 " down"); \
  68   68                          system("ifconfig " $2 " unplumb"); \
  69   69                          next; \
  70   70                  } \
  71   71                  /ifconfig/ { \
  72   72                          $3 = "removeif"; \
  73   73                          NF = 4; \
  74   74                          system($0); \
  75   75                  }' < $PPPDIR/ifconfig
  76   76          fi
↓ open down ↓ 19 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX