Last active
February 17, 2016 06:30
-
-
Save rummik/28c44c07298f377df970 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
for home in /home/*; do | |
user=$(basename $home) | |
if [ -x $home/.rc.local ]; then | |
sudo -u $user $home/.rc.local & | |
fi | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment