freewrt_1_0
freewrt_2_0
|
Last change
on this file since d30e6bd was d30e6bd, checked in by Thorsten Glaser <tg@…>, 19 years ago |
- base-files: we'll have variables of the style
| firewall=NO
| ssh=YES
and variables of the style
| ntpd_flags=-s
| ntpd_flags=""
| ntpd_flags=NO
- openntpd: convert to use functions.sh stuff
git-svn-id: svn://www.freewrt.org/trunk/freewrt@369 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
563 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # do not change below
|
|---|
| 4 | # check if we are on real system
|
|---|
| 5 | if [ -z "${IPKG_INSTROOT}" ]; then
|
|---|
| 6 | # create copies of passwd and group, if we use squashfs
|
|---|
| 7 | rootfs=`mount |awk '/root/ { print $5 }'`
|
|---|
| 8 | if [ "$rootfs" = "squashfs" ]; then
|
|---|
| 9 | if [ -h /etc/group ]; then
|
|---|
| 10 | rm /etc/group
|
|---|
| 11 | cp -p /rom/etc/group /etc/group
|
|---|
| 12 | fi
|
|---|
| 13 | if [ -h /etc/passwd ]; then
|
|---|
| 14 | rm /etc/passwd
|
|---|
| 15 | cp -p /rom/etc/passwd /etc/passwd
|
|---|
| 16 | fi
|
|---|
| 17 | fi
|
|---|
| 18 | fi
|
|---|
| 19 |
|
|---|
| 20 | gid=$(get_next_gid)
|
|---|
| 21 | add_group ntp $gid
|
|---|
| 22 | add_user ntp $(get_next_uid) $gid /tmp/.ntp
|
|---|
| 23 | add_service ntp 123/udp
|
|---|
| 24 | add_rcconf openntpd ntpd_flags -s
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.