File: userscripts-up

package info (click to toggle)
ppp 2.5.2-1%2B1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,472 kB
  • sloc: ansic: 40,721; sh: 5,356; perl: 458; makefile: 453
file content (7 lines) | stat: -rw-r--r-- 158 bytes parent folder | download | duplicates (26)
1
2
3
4
5
6
7
#!/bin/sh -e

getent passwd | awk -F: '{print $1 " " $6}' | \
while read user home; do
    [ -x $home/.ip-up.d/ ] && su $user run-parts $home/.ip-up.d/
done