7 # check if we are on real system
8 if [ -z "${IPKG_INSTROOT}" ]; then
9 # create copies of passwd and group, if we use squashfs
10 rootfs
=`mount |awk '/root/ { print $5 }'`
11 if [ "$rootfs" = "squashfs" ]; then
12 if [ -h /etc
/group
]; then
14 cp -p /rom
/etc
/group
/etc
/group
16 if [ -h /etc
/passwd
]; then
18 cp -p /rom
/etc
/passwd
/etc
/passwd
24 if [ -z "$(grep ^\\${name}: ${IPKG_INSTROOT}/etc/group)" ]; then
25 echo "adding group $name to /etc/group"
26 echo "${name}:x:${id}:" >> ${IPKG_INSTROOT}/etc/group
29 if [ -z "$
(grep ^
\\${name}: ${IPKG_INSTROOT}/etc
/passwd
)" ]; then
30 echo "adding user
$name to
/etc
/passwd
"
31 echo "${name}:x:${id}:${id}:${name}:/tmp/.${name}:/bin/false" >> ${IPKG_INSTROOT}/etc
/passwd
34 grep -q '^ntp[[:space:]]*123/udp' ${IPKG_INSTROOT}/etc
/services
2>/dev
/null
35 [ $?
-ne 0 ] && echo "ntp 123/udp" >>${IPKG_INSTROOT}/etc
/services
This page took 0.043523 seconds and 5 git commands to generate.